Commit 364194e32458712cc0a1f6cd0e651f56556f0dba
Merge branch 'renderDescrAsMarkdown'
mix irving committed on 3/31/2017, 11:10:53 AMParent: 05491d3f51c3844b64aa3a2b03bfd8692581b412
Parent: 22680faae3696a6bd8d971a0ac7bbd0e9100bcfa
Files changed
about/html/edit.js | changed |
about/html/edit.js | ||
---|---|---|
@@ -19,8 +19,9 @@ | ||
19 | 19 | }, |
20 | 20 | 'blob.sync.url': 'first', |
21 | 21 | 'keys.sync.id': 'first', |
22 | 22 | 'message.html.confirm': 'first', |
23 | + 'message.html.markdown': 'first', | |
23 | 24 | sbot: { |
24 | 25 | 'async.addBlob': 'first', |
25 | 26 | 'pull.links': 'first' |
26 | 27 | } |
@@ -91,9 +92,12 @@ | ||
91 | 92 | h('img', { src: avatarSrc }) |
92 | 93 | ]), |
93 | 94 | h('footer', displayedName) |
94 | 95 | ]), |
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 | + })), | |
96 | 100 | h('section.aliases', [ |
97 | 101 | h('header', 'Aliases'), |
98 | 102 | h('section.avatars', [ |
99 | 103 | h('header', 'Avatars'), |
Built with git-ssb-web