We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Marked version: 15.0.0
Describe the bug when useing marked.parse Given this input:
-This shouldn't be an h tag -
Results in this:
<h2>-This shouldn't be an h tag</h2>
and not the expected:
<ul> <li> <p>This shouldn't be an h tag</p> <ul> <li></li> </ul> </li> </ul>
you can try in https://spec.commonmark.org/dingus/
The text was updated successfully, but these errors were encountered:
Your assertion is incorrect. Using the commonmark link you provided:
Using the marked demo:
The <p> tag you mention in "Expected" is never expected. IF you wanted this output:
<p>
<ul> <li> This shouldn't be an h tag <ul> <li>sublistitem</li> </ul> </li> </ul>
It should be written as:
- This shouldn't be an h tag - sublistitem
or
* This shouldn't be an h tag * sublistitem
Sorry, something went wrong.
Yes according to the CommonMark spec that is a heading not a list. If you would like us to change it you will have to change the CommonMark spec.
Or you can create an extension that makes it a list.
Thanks for the advice~
No branches or pull requests
Marked version: 15.0.0
Describe the bug
when useing marked.parse
Given this input:
Results in this:
and not the expected:
you can try in https://spec.commonmark.org/dingus/

The text was updated successfully, but these errors were encountered: