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 management error #198

Open
jdecool opened this issue Jul 30, 2014 · 7 comments
Open

Emphasis management error #198

jdecool opened this issue Jul 30, 2014 · 7 comments
Labels

Comments

@jdecool
Copy link

jdecool commented Jul 30, 2014

In a document, I have this markdown :

this_text_is_normal 
_this text_is italic_

I expect something like :

<p>this_text_is_normal 
<em>this text_is italic</em></p>

But parsedown generate :

<p>this_text_is_normal
_this text<em>is italic</em></p>
@kminchev
Copy link

And what is the logic behind your expectations?

@jdecool
Copy link
Author

jdecool commented Jul 30, 2014

text_is is a word, there's no separator. It's the same logic as this_text_is_normal.

Try to enter the example in Github and look the result.

@kminchev
Copy link

this_text_is_normal 
*this text_is italic*

@erusev erusev added the issue label Jul 30, 2014
@jdecool
Copy link
Author

jdecool commented Jul 31, 2014

@kminchev Your solution works, I'm going to work with at the moment.

But there is still a bug with this input :

this_text_is_normal 
_this text_is italic_

@piouPiouM
Copy link

Same issue with __foo_bar__:

  • expected: <strong>foo_bar</strong>
  • actual: __foo_bar__

Note that all markdown parsers supports this syntax (proof here: foo_bar).

@fabacab
Copy link

fabacab commented Feb 24, 2015

I just ran into a similar issue to this where words have control characters in them. For example, the decentralized social network Diaspora* is formally written with an asterisk in the name (i.e., the correct typographical representation of the project is Diaspora* with an asterisk, not Diaspora with no asterisk). The same is true for some renderings of words in sociology (like trans*) and, of course, other areas of more technical specializations, such as those discussed above.

If I have two paragraphs of text that includes such a phrase, like this:

Let's query the Diaspora* pod to see what happens.
Note that Diaspora* has no formal API to speak of, but this query does work, so *shrug*.

My expectation is that only the final word in the second paragraph (*shrug*) will be italicized. However, using Parsedown, what actually gets italicized is the text * has no formal API to speak of, but this query does work, so *.

Basically this is just…well, incorrect, it seems to me.

@domsson
Copy link

domsson commented Jul 29, 2019

This seems to be related to #703 and #364

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

No branches or pull requests

6 participants