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: for emphasis, include the case where the end of the content string is an escape sequence #65

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

stevenxxiu
Copy link
Contributor

@stevenxxiu stevenxxiu commented Jan 3, 2024

Checklist

  • Used only camelCase variable names.
  • If functionality is added or modified, also made respective changes to the readme.
  • Used conventional commits keywords.

Some cases I missed yesterday:

abc *\*t* def
abc _\_t_ def
abc ~~\~t~~ def
abc ==\=t== def

abc *t\** def
abc _t\__ def
abc ~~t\~~~ def
abc ==t\=== def

abc *\** def
abc __\___ def
abc ~~\~~~ def
abc ==\=== def

*\** def
__\___ def
~~\~~~
==\===

It'll be a lot easier to code this if Lua had proper eregex! Or maybe I can just use Treesitter instead and figure out how to find the nearest scopes.

@chrisgrieser chrisgrieser merged commit 423b8b1 into chrisgrieser:main Jan 3, 2024
2 of 3 checks passed
@chrisgrieser
Copy link
Owner

Thx

@stevenxxiu stevenxxiu deleted the fix/md-emphasis branch January 3, 2024 09:47
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.

2 participants