From bdb52c0f6a94b0ad84ea2a756288feb3fe55a60d Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 19 Mar 2017 18:31:09 -0400 Subject: update ssb-marked: detect hashtags --- lib/markdown-inline.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/markdown-inline.js b/lib/markdown-inline.js index 2f1e696..238d0f1 100644 --- a/lib/markdown-inline.js +++ b/lib/markdown-inline.js @@ -26,6 +26,7 @@ inlineRenderer.em = function(text) { return unquote(text) } inlineRenderer.codespan = function(text) { return unquote(text) } inlineRenderer.del = function(text) { return unquote(text) } inlineRenderer.mention = function(preceding, id) { return shortenIfLink(unquote((preceding||'') + id)) } +inlineRenderer.hashtag = function(preceding, tag) { return unquote((preceding||'') + tag) } function unquote (text) { return text.replace(/&/g, '&').replace(/"/g, '"').replace(/'/g, '\'') -- cgit v1.2.3