Skip to content

Markdown rendering broken in the presence of punctuation. #5234

Closed

Description

If you end a parenthetical remark with italics (such as this) in a markdown block in Jupyter, instead of rendering the "this" in italics, it renders in the standard font with the underscores showing.

A similar problem occurs when the underscore is followed by a '?'. I just tested these on jupyter.org/try to confirm that they do not work in Jupyter and on marked.js.org to confirm that they render as expected on other markdown systems.

In fact, it appears any use of punctuation following the underscore causes problems for the rendering.

Note that if you use only the first two lines of the following example in Jupyter you get all the underscores, but if you use all three lines, things go significantly more wonky even on the earlier lines (somehow the inclusion of the later line makes things even worse for the earlier lines):

(How well does _this render?_)
How well does this _render_?
This is some _italic text_.

GitHub's rendering also seems to work as expected:

(How well does this render?)
How well does this render?
This is some italic text.

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions