Closed fuyunmanbu closed 1 year ago
Do you see this with various syntaxes, or just strikethrough (~~
)?
various syntaxes,The effect of syntax nesting together
This effect works at the same time
All of those examples have strikethrough. I imagine it only affects strikethrough.
I will fix that
@fuyunmanbu I got what you mean. 🙂 The markdown package itself has no problem to parse the nesting strikethrough and strong emphasis, for example
markdownToHtml('~~**hello**~~', extensionSet: ExtensionSet.gitHubFlavored)
will output:
<p><del><strong>hello</strong></del></p>
You might need to report it here if you are using flutter_markdown
.
I found the problem after the test. I can support English, but not Chinese. Can you solve this problem?
I seem to have found the problem. There should be no content around
It's not about language
@fuyunmanbu Got it, thanks!
Then it is the expected behavior. Our StrikethroughSyntax
follows the rules of CommanMark delimiter run, it means if a left ~~
is followed by a Unicode punctuation character it must be preceded by a Unicode whitespace or a Unicode punctuation character.
So these strikethroughs are valid:
Hello ~~**Markdown**~~!
Hello:~~**Markdown**~~!
But not this one:
Hello~~**Markdown**~~!
Okay. Thank you very much.
such as
~~**hello**~~
Cannot be recognized at the same time