Skip to content

Commit d5af0fd

Browse files
committed
Fix for ':' in headers
1 parent 2f3f80a commit d5af0fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@ Markdown.dialects.Maruku = Markdown.subclassDialect( Markdown.dialects.Gruber );
10301030

10311031
Markdown.dialects.Maruku.block.document_meta = function document_meta( block, next ) {
10321032
// we're only interested in the first block
1033-
if ( block.lineNumber > 1 ) return undefined;
1033+
if ( typeof block.lineNumber === "undefined" || block.lineNumber > 1 ) return undefined;
10341034

10351035
// document_meta blocks consist of one or more lines of `Key: Value\n`
10361036
if ( ! block.match( /^(?:\w+:.*\n)*\w+:.*$/ ) ) return undefined;

0 commit comments

Comments
 (0)