markdown-it-cjk-breaks
markdown-it-cjk-breaks copied to clipboard
exception rendering `**a**\nb`
trafficstars
import markdownit from 'markdown-it';
import cjkBreaksExt from 'markdown-it-cjk-breaks';
let md = markdownit({
html: true,
});
md = md.use(cjkBreaksExt);
md.render('**a**\nb');
TypeError: Expected a code point, got `undefined`.
❯ validate node_modules/get-east-asian-width/index.js:5:9
❯ eastAsianWidthType node_modules/get-east-asian-width/index.js:10:2
❯ process_inlines node_modules/markdown-it-cjk-breaks/index.mjs:49:24
❯ Array.cjk_breaks node_modules/markdown-it-cjk-breaks/index.mjs:65:5
❯ Core.process node_modules/markdown-it/lib/parser_core.mjs:56:13
❯ MarkdownIt.parse node_modules/markdown-it/lib/index.mjs:511:13
❯ MarkdownIt.render node_modules/markdown-it/lib/index.mjs:530:36
Covered by https://github.com/markdown-it/markdown-it-cjk-breaks/pull/5