Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception rendering **a**\nb #6

Open
tylerlong opened this issue Nov 5, 2024 · 1 comment
Open

exception rendering **a**\nb #6

tylerlong opened this issue Nov 5, 2024 · 1 comment

Comments

@tylerlong
Copy link

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
@tylerlong
Copy link
Author

Covered by #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant