summaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-22 21:13:22 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-22 21:13:22 -0800
commita3be6dc81c971fa1b3c656d82f7e96794d510212 (patch)
treef8560dcb764082fc49933db19ec7a53f54fb37ac /js/lib
parente8809f7e448bffc51adac1f2e143d99496d6a55f (diff)
Fixed #192.
The C and JS implementations were not registering blank lines after atx headers for purposes of tight/loose list calculation. Exmaple: * item * # block1 ## block2
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/blocks.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index fd76b15..65c2c46 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -266,6 +266,9 @@ var incorporateLine = function(ln, line_number) {
case 'HorizontalRule':
// a header can never container > 1 line, so fail to match:
all_matched = false;
+ if (blank) {
+ container.last_line_blank = true;
+ }
break;
case 'FencedCode':
@@ -279,6 +282,7 @@ var incorporateLine = function(ln, line_number) {
case 'HtmlBlock':
if (blank) {
+ container.last_line_blank = true;
all_matched = false;
}
break;