git ssb

16+

Dominic / patchbay



Commit 3f6f0c96bdbbd8307fb9e5459b6857870001abfc

use ssb-markdown feature which allows creation of clickable image links

mix irving committed on 1/21/2017, 10:06:35 PM
Parent: 9a9a0d3a4b6091ad5a05671399f0137eaee72ada

Files changed

config.jschanged
modules_basic/markdown.jschanged
package.jsonchanged
config.jsView
@@ -23,10 +23,10 @@
2323 else
2424 blobsUrl = 'http://localhost:8989/blobs/get'
2525
2626 return {
27- remote: remote,
28- blobsUrl: blobsUrl
27 + remote,
28 + blobsUrl
2929 }
3030 }
3131
3232
modules_basic/markdown.jsView
@@ -32,12 +32,13 @@
3232
3333 var md = h('div.markdown')
3434 md.innerHTML = markdown.block(content.text, {
3535 emoji: renderEmoji,
36- toUrl: function (id) {
36 + toUrl: (id) => {
3737 if(ref.isBlob(id)) return api.blob_url(id)
3838 return '#'+(mentions[id]?mentions[id]:id)
39- }
39 + },
40 + imageLink: (id) => '#' + id
4041 })
4142
4243 return md
4344
package.jsonView
@@ -50,9 +50,9 @@
5050 "ssb-feed": "^2.2.1",
5151 "ssb-git": "^0.4.1",
5252 "ssb-keys": "^6.1.0",
5353 "ssb-links": "^2.0.0",
54- "ssb-markdown": "^3.0.0",
54 + "ssb-markdown": "^3.1.1",
5555 "ssb-mentions": "^0.1.0",
5656 "ssb-query": "^0.1.1",
5757 "ssb-ref": "^2.6.2",
5858 "ssb-sort": "^1.0.0",

Built with git-ssb-web