#1216 Markdown lexer emphasis spans should be paragraph-oriented

Scintilla (796)

According to http://github.github.com/github-flavored-markdown/preview.html
text like these bits:

_starts with underscore


should *not* be emphasized, because the paragraph ends with an unclosed "_".
Note that in this text:

one two _three
four five_ six

"three four five" only will be emphasized. Leaving the "_" off
after "five" leaves all text in both lines unemphasized.

I'm relying on http://github.github.com/github-flavored-markdown/preview.html
to determine the actual Markdown syntax, since the spec is minimal, even with
github saying the preview is deprecated.


  • Neil Hodgson

    Neil Hodgson - 2011-08-27
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 4
    • milestone: --> Bug
    • labels: --> Scintilla
    • status: open --> open-accepted
  • Neil Hodgson

    Neil Hodgson - 2011-08-27

    OK. I'll leave this to anhy Markdown user.

  • Bewied

    Bewied - 2017-03-21

    Over five years later, same problem :(

    Ideally, the parser would recognize that emphasis cannot span paragraphs. I guess checking for [\r?\n][\r?\n] should be both minimal and sufficient.


Log in to post a comment.