Skip to content
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

A sentence with nested modifiers cannot be parsed correctly. #9

Open
evpeople opened this issue Sep 15, 2024 · 1 comment
Open

A sentence with nested modifiers cannot be parsed correctly. #9

evpeople opened this issue Sep 15, 2024 · 1 comment

Comments

@evpeople
Copy link

I found that in the case of double nesting, some content can be parsed correctly, but in sentences like the following, only a list of tokens is parsed.

This is _/underline, italic and *-strikethrough bold-*/_. Mix and match how you see fit, just make sure
@evpeople
Copy link
Author

I tried to find out what the issue was, and here are some of my findings, which I hope will be helpful.

The following content can be parsed very well.

            let content = r#"_*/hell, -ow-/*_, orld!  
"#;   // can be parsed
            let content = r#"_*/hell, ow/*_, orld!
"#;        // can not be parsed
            let content = r#"_*/hell , ow/*_, orld!      
"#;    // can not be parsed
            let content = r#"_*/hell  ow/*_, orld!
        "#; // can not be parsed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant