git ssb

16+

Dominic / patchbay



Commit 22680faae3696a6bd8d971a0ac7bbd0e9100bcfa

about profile: render the self-description text as markdown

Henry committed on 3/31/2017, 6:56:31 AM
Parent: 9bc144cce7f943481bbdf418bd837395b337c712

Files changed

about/html/edit.jschanged
about/html/edit.jsView
@@ -19,8 +19,9 @@
1919 },
2020 'blob.sync.url': 'first',
2121 'keys.sync.id': 'first',
2222 'message.html.confirm': 'first',
23+ 'message.html.markdown': 'first',
2324 sbot: {
2425 'async.addBlob': 'first',
2526 'pull.links': 'first'
2627 }
@@ -91,9 +92,12 @@
9192 h('img', { src: avatarSrc })
9293 ]),
9394 h('footer', displayedName)
9495 ]),
95- h('section.description', api.about.obs.description(id)),
96+ h('section.description', computed(api.about.obs.description(id), (descr)=>{
97+ if (descr == null) return "" // TODO: should be in patchcore, I think...
98+ return api.message.html.markdown(descr)
99+ })),
96100 h('section.aliases', [
97101 h('header', 'Aliases'),
98102 h('section.avatars', [
99103 h('header', 'Avatars'),

Built with git-ssb-web