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

Runtime error in markup with attrs in checklists #559

Open
d3m1d0v opened this issue Nov 11, 2024 · 0 comments
Open

Runtime error in markup with attrs in checklists #559

d3m1d0v opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@d3m1d0v
Copy link
Member

d3m1d0v commented Nov 11, 2024

Markdown markup:

[ ] checklist {#class}

When call transform() and pass this markup and checkbox-plugin, a runtime error occurs:

Uncaught TypeError: Cannot read properties of undefined (reading 'type')
    at push../node_modules/markdown-it-attrs/utils.js.exports.getMatchingOpeningToken (utils.js:236:1)
    at Object.transform (patterns.js:328:1)
    at Array.curlyAttrs (index.js:30:1)
    at push../node_modules/markdown-it/lib/parser_core.js.Core.process (parser_core.js:54:1)
    at push../node_modules/markdown-it/lib/index.js.MarkdownIt.parseInline (index.js:561:1)
    at createTokens (checkbox.js:67:1)
    at splitTextToken (checkbox.js:89:1)
    at Array.<anonymous> (checkbox.js:98:1)
    at push../node_modules/markdown-it/lib/parser_core.js.Core.process (parser_core.js:54:1)
    at push../node_modules/markdown-it/lib/index.js.MarkdownIt.parse (index.js:524:1)
@d3m1d0v d3m1d0v added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant