aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-19 18:31:09 -0400
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-24 10:34:52 -0400
commitbdb52c0f6a94b0ad84ea2a756288feb3fe55a60d (patch)
tree014e618e7f4956ac115bf13c70819b8ab5b76388
parent09477e502b5b3e0a81aa66f3b3743616554ddb62 (diff)
downloadpatchfoo-bdb52c0f6a94b0ad84ea2a756288feb3fe55a60d.tar.gz
patchfoo-bdb52c0f6a94b0ad84ea2a756288feb3fe55a60d.zip
update ssb-marked: detect hashtags
-rw-r--r--lib/markdown-inline.js1
-rw-r--r--package.json2
2 files changed, 2 insertions, 1 deletions
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(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&#39;/g, '\'')
diff --git a/package.json b/package.json
index d52ebae..ad73c8e 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
"pull-paramap": "^1.2.1",
"pull-stream": "^3.5.0",
"ssb-avatar": "^0.2.0",
- "ssb-marked": "^0.6.0",
+ "ssb-marked": "^0.7.1",
"ssb-mentions": "^0.2.0",
"ssb-sort": "^1.0.0",
"stream-to-pull-stream": "^1.7.2"