You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize that putting a list item's attribute at its front is not spec'd as being supported, so perhaps this is low priority. Am just passing this along since crashes are never good.)
var md = require('markdown-it')();
var markdownItAttrs = require('markdown-it-attrs');
md.use(markdownItAttrs, {});
md.render('- {#hi} [link1](./link1)');
Resulting dump:
TypeError: Cannot read property 'type' of undefined
at Object.exports.getMatchingOpeningToken (/Users/grant/git/marked-it-cli/node_modules/markdown-it-attrs/utils.js:269:17)
at Object.transform (/Users/grant/git/marked-it-cli/node_modules/markdown-it-attrs/patterns.js:170:34)
at Array.curlyAttrs (/Users/grant/git/marked-it-cli/node_modules/markdown-it-attrs/index.js:33:19)
at Core.process (/Users/grant/git/marked-it-cli/node_modules/markdown-it/lib/parser_core.js:51:13)
at MarkdownIt.parse (/Users/grant/git/marked-it-cli/node_modules/markdown-it/lib/index.js:524:13)
at MarkdownIt.render (/Users/grant/git/marked-it-cli/node_modules/markdown-it/lib/index.js:544:36)
at Object.<anonymous> (/Users/grant/git/marked-it-cli/test.js:4:4)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
The text was updated successfully, but these errors were encountered:
I realize that putting a list item's attribute at its front is not spec'd as being supported, so perhaps this is low priority. Am just passing this along since crashes are never good.)
Markdown-it versions:
% npm ls | grep markdown-it
├─┬ [email protected]
└── [email protected]
Snippet to run:
Resulting dump:
The text was updated successfully, but these errors were encountered: