We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f3f80a commit d5af0fdCopy full SHA for d5af0fd
lib/markdown.js
@@ -1030,7 +1030,7 @@ Markdown.dialects.Maruku = Markdown.subclassDialect( Markdown.dialects.Gruber );
1030
1031
Markdown.dialects.Maruku.block.document_meta = function document_meta( block, next ) {
1032
// we're only interested in the first block
1033
- if ( block.lineNumber > 1 ) return undefined;
+ if ( typeof block.lineNumber === "undefined" || block.lineNumber > 1 ) return undefined;
1034
1035
// document_meta blocks consist of one or more lines of `Key: Value\n`
1036
if ( ! block.match( /^(?:\w+:.*\n)*\w+:.*$/ ) ) return undefined;
0 commit comments