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

Remove whitespace tokenizing rule in markdown lexer #1008

Conversation

cloudchamb3r
Copy link
Contributor

@cloudchamb3r cloudchamb3r commented Oct 11, 2024

fix #744
related issue: go-gitea/gitea#32136

current markdown lexer is tokenizing by whitespace, but in markdown sytanx this implementation can cause some errors.

@cloudchamb3r cloudchamb3r changed the title remove whitespace tokenizing rule in markdown Remove whitespace tokenizing rule in markdown Oct 11, 2024
@cloudchamb3r cloudchamb3r changed the title Remove whitespace tokenizing rule in markdown Remove whitespace tokenizing rule in markdown lexer Oct 11, 2024
@alecthomas
Copy link
Owner

Apologies for the delay. It's not clear to me what this fixes, can you add some test data that proves it's fixing the underlying issue?

@cloudchamb3r
Copy link
Contributor Author

Ok, I'll add it soon

@cloudchamb3r
Copy link
Contributor Author

@alecthomas I updated my pull requests. please review again. thank you

@alecthomas alecthomas merged commit 539d031 into alecthomas:master Nov 14, 2024
2 checks passed
@alecthomas
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

Incorrect markdown link highlighting when in round brackets
2 participants