Commit 3b0b994c23e7c80183b45838f85fdf2eb63d2f18
whoops, fix non-link style mention linking
Matt McKegg committed on 10/14/2017, 2:00:11 PMParent: 1f8ca230abddc0671b31f56cf357b55a08539414
Files changed
message/html/markdown.js | changed |
message/html/markdown.js | |||
---|---|---|---|
@@ -42,10 +42,12 @@ | |||
42 | 42 … | return renderEmoji(emoji, url) | |
43 | 43 … | }, | |
44 | 44 … | toUrl: (id) => { | |
45 | 45 … | if (ref.isBlob(id)) return api.blob.sync.url(id) | |
46 | - if (ref.isLink(id) || id.startsWith('#') || id.startsWith('?')) { | ||
47 | - return mentions[id] || id | ||
46 … | + if (mentions[id]) { | ||
47 … | + return mentions[id] | ||
48 … | + } else if (ref.isLink(id) || id.startsWith('#') || id.startsWith('?')) { | ||
49 … | + return id | ||
48 | 50 … | } | |
49 | 51 … | return false | |
50 | 52 … | }, | |
51 | 53 … | imageLink: (id) => id |
Built with git-ssb-web