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

Fix backtick mixed with table fence in Markdown #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LdBeth
Copy link

@LdBeth LdBeth commented Dec 27, 2023

The text that can be matched by regex '[^\\`]`[^|]+[|].*[^\\]`' occurred could be misread by some Markdown parser as | inside code block. This PR fixes that.

The pattern '[^\\`]`[^|]+[|].*`' could be misread by some Markdown
parser with poor table handling.
GitHub flavored Markdown does not treat ^ for superscript, but other
Markdown parsers might be. Some were already especed, this commit
makes the it more consistent.
@LdBeth
Copy link
Author

LdBeth commented Feb 8, 2024

I also realized the markdown parser I use (lowdown) enables treat ^ as superscript by default, a few of them in the doc were already escaped, but the majority were not, I added a commit to fix that.

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.

1 participant