8000 fix hyperdown · segmentfault/HyperDown.js@ec7c352 · GitHub
[go: up one dir, main page]

Skip to content

Commit ec7c352

Browse files
committed
fix hyperdown
1 parent 5155d75 commit ec7c352

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Parser.js

Lines changed 8000 : 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"license": "BSD-4-Clause",
99
"author": "SegmentFault",
10-
"version": "2.4.22",
10+
"version": "2.4.23",
1111
"scripts": {
1212
"test": "mocha",
1313
"build": "cake build"

src/Parser.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ class Parser
408408
if (@isBlock 'list') and not line.match /^\s*\[((?:[^\]]|\\\]|\\\[)+?)\]:\s*(.+)$/
409409
if !!(line.match /^(\s*)(~{3,}|`{3,})([^`~]*)$/i)
410410
# ignore code
411+
state.empty = 0
411412
return yes
412413
else if (state.empty <= 1) and !!(matches = line.match /^(\s*)\S+/) and matches[1].length >= (block[3][0] + state.empty)
413414
state.empty = 0

0 commit comments

Comments
 (0)
0