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

Add checks to ensure in-word formatting chars aren't replaced #101

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jacobmischka
Copy link

Basic text formatting sequences (_, *, __, **) are now required to not
be entirely within a word; that is, they must have a non-word character
on either side to be replaced.

This prevents words that include those characters (snake_case words, or
some proper nouns that may include an Embedded*Asterisk__Or**Two for
some reason) from being captured.

Fixes #21

Basic text formatting sequences (_, *, __, **) are now required to not
be entirely within a word; that is, they must have a non-word character
on either side to be replaced.

This prevents words that include those characters (snake_case words, or
some proper nouns that may include an Embedded*Asterisk__Or**Two for
some reason) from being captured.

Fixes developit#21
@yanndinendal
Copy link

yanndinendal commented Feb 6, 2023

Yes it's expected in most markdown formatters that one single underscore inside a word should not be interpreted as the start of an italic sentence with no end.

Could this PR be taken into consideration?

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.

Snake_case underscores create italics
2 participants