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

Emphasis and underscores in the middle of a word #343

Closed
silentvick opened this issue Feb 6, 2014 · 5 comments
Closed

Emphasis and underscores in the middle of a word #343

silentvick opened this issue Feb 6, 2014 · 5 comments

Comments

@silentvick
Copy link

I'm using marked.js v.0.3.1 with default settings.
Seems it breaks with underscores in the middle of word if there is also emphasis block in the same paragraph.

For example, this:

just_a_few_underscores

becomes this

just_a_few_underscores

as expected.

But this:

just_a_few_underscores. And here is the _emphasis_.

becomes:
justa _few_underscores. And here is emphasis.

Output html:

<p>just<em>a_few_underscores. And here is _emphasis</em>.</p>
@javoire
Copy link

javoire commented Sep 22, 2014

+1

1 similar comment
@tylercollier
Copy link

+1

@santhosh-tekuri
Copy link

+1

1 similar comment
@suzanshakya
Copy link

+1

@joshbruce
Copy link
Member

Closing as covered by CommonMark compliance. See also #1106 and #1216

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

No branches or pull requests

6 participants