Browse Source

HTML block fix (tag names should be case incensitive)

pull/14/head
Vitaly Puzrin 10 years ago
parent
commit
ca47821eaa
  1. 2
      lib/lexer_block/htmlblock.js

2
lib/lexer_block/htmlblock.js

@ -51,7 +51,7 @@ module.exports = function htmlblock(state, startLine, endLine, silent) {
if (!match) { return false; }
}
// Make sure tag name is valid
if (block_names.indexOf(match[1]) < 0) { return false; }
if (block_names.indexOf(match[1].toLowerCase()) < 0) { return false; }
if (silent) { return true; }
} else {

Loading…
Cancel
Save