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

Bad italics with underscores within word #180

Open
eerohele opened this issue Mar 30, 2022 · 1 comment
Open

Bad italics with underscores within word #180

eerohele opened this issue Mar 30, 2022 · 1 comment

Comments

@eerohele
Copy link

Repro:

(markdown.core/md-to-html-string "foo_bar_baz")
;;=> "<p>foo<i>bar</i>baz</p>"

Expected:

(markdown.core/md-to-html-string "foo_bar_baz")
;;=> "<p>foo_bar_baz</p>"

For reference, see this commonmark.js dingus.

@yogthos
Copy link
Owner

yogthos commented Mar 30, 2022

I'd be open to making a change to check for space before and after, as a workaround you can escape the italics with \_ at the moment.

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

No branches or pull requests

2 participants