tent-markdown
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -17,3 +17,9 @@ // Released under BSD license | ||
var nextBlock = this.dialect.block.hashtags; | ||
var nextBlock = function (block, next) { | ||
var _block = [].concat(this.dialect.block.hashtags.call(this, block, next, false)); | ||
if (_block.length == 1) { | ||
_block = _block[0]; | ||
} | ||
return _block; | ||
} | ||
@@ -97,3 +103,3 @@ if (!urls.length) { | ||
if (before.length) { | ||
jsonml = jsonml.concat(nextBlock.call(this, before, [], false) || [] ); | ||
jsonml = jsonml.concat(nextBlock.call(this, before, []) || [] ); | ||
} | ||
@@ -111,3 +117,3 @@ | ||
// process remaining text | ||
jsonml = jsonml.concat(nextBlock.call(this, _block, next, false) || [] ); | ||
jsonml = jsonml.concat(nextBlock.call(this, _block, next) || [] ); | ||
@@ -114,0 +120,0 @@ return [jsonml]; |
{ | ||
"name": "tent-markdown", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Tent dialect for markdown lib", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,10 +7,8 @@ ["html", | ||
], | ||
[ | ||
" and a ", | ||
["a", | ||
{ "href" : "#hashtag", "rel": "hashtag" }, | ||
"#hashtag" | ||
] | ||
" and a ", | ||
["a", | ||
{ "href" : "#hashtag", "rel": "hashtag" }, | ||
"#hashtag" | ||
] | ||
] | ||
] |
75565
1865