jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

Incorrect Markdown formatting of single characters #448

Open bradhowes opened 5 years ago

bradhowes commented 5 years ago

Running Jupyter notebook server 5.7.0 on macOS in a virtual environment with Python 3.7.0, I am seeing incorrect rendering for the following in a Markdown cell:

This is a **A** single character. This is a **B** single character.

What I expect to see is:

This is a A single character. This is a B single character.

But what I am currently seeing is:

This is A** single character. This is a **B single character.

If instead I change the Markdown source to be

This is a **AA** single character. This is a **BB** single character.

then I get the expected output

This is a AA single character. This is a BB single character.

minrk commented 5 years ago

Looks like the regular expression might be wrong in marked.js. We should report this upstream at https://github.com/markedjs/marked since that's where this logic is.

bradhowes commented 5 years ago

Thanks. I went there and tried my test case above on the demo page at https://marked.js.org/demo/ -- it displayed just fine.