You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
marked will create headers for the first few elements but then stop. adding extra newlines OR replacing the nonbreaking space characters seems to fix it?
commonmark doesn't create them at all, you have to replace the nonbreaking spaces
DaringFireball's site seems to do "best", the headers are properly replaced AND the nonbreaking space stays intact?
Expected behavior
Best, I'd expect all the headers to be generated, keeping the nonbreaking space intact and without extra newlines/spacing (we're moving from one platform to another and have a ton of existing and customer markdown content that we don't control and can't convert).
The text was updated successfully, but these errors were encountered:
Marked version:
4.2.12
(noticed on 4.0.10, tried upgrading to see if it helps)
Describe the bug
Invisible non-breaking space characters, like in this block right here, (inline as code and content)
## h2
### h3
link
### anotherh3
are not always treated as whitespace, so things like headers, tables, etc don't get formatted and are left as markdown syntax.
To Reproduce
Steps to reproduce the behavior:
Marked broken
marked will create headers for the first few elements but then stop. adding extra newlines OR replacing the nonbreaking space characters seems to fix it?
CommonMark broken worse
commonmark doesn't create them at all, you have to replace the nonbreaking spaces
DaringFireball's site seems to do "best", the headers are properly replaced AND the nonbreaking space stays intact?
Expected behavior
Best, I'd expect all the headers to be generated, keeping the nonbreaking space intact and without extra newlines/spacing (we're moving from one platform to another and have a ton of existing and customer markdown content that we don't control and can't convert).
The text was updated successfully, but these errors were encountered: