Wrong parsing of emphasis and strong emphasis formatting #82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From CommonMark example 431:
should be parsed as:
Using just
markdown-itthis works as expected but thedefaultMarkdownParsercreates this incorrect representation:ProseMirror does not allow marks of the same type to be nested like this. I guess the markdown parser could be a bit more graceful about this (just ignoring the inner opening and closing strong tokens).
Well one could workaround this as ProseMirror supports multiple marks of the same type if they have different attributes. Meaning you have to set
excludes: ''for the marksemandstrongand add a nesting attribute to them.e.g. something like this: