-
Notifications
You must be signed in to change notification settings - Fork 62
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
token.attrJoin is not a function #144
Comments
Problem is somewhere in utils.getMatchingOpeningToken(tokens[i].children, j - 1); This function returns false, and then there is no check of false value, it is just passed to utils.addAttrs(attrs, openingToken);
|
After more debugging I found that level is not correct I have this text
and here is token stream. I don't know why on Earth em_open and em_close have different level property and why nesting is -1
|
Right now if I remove tokens[i].level === level check from this code
in getMatchingOpeningToken function it works. But this is wrong |
Hi👋 Thanks for the detailed description. What version of markdown-it do you use? |
Actually I don't know. Im using vuepress. You can see version in issue |
Maybe this will help you
|
I have the same issue when using |
I think the problem is not with this plugin but with markdown-it itself. Or maybe vuepress. Very hard to tell |
Versions:
+-- [email protected]
+-- [email protected]
`-- [email protected]
Example input:
Current output:
Uncaught (in promise) Error: Module build failed (from ./node_modules/@vuepress/markdown-loader/index.js):
TypeError: token.attrJoin is not a function
The text was updated successfully, but these errors were encountered: