Uploaded image for project: 'Markdown Syntax'
  1. Markdown Syntax
  2. MARKDOWN-98

Inline HTML void element makes the rest of the paragraph lose its Markdown syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 8.10.0
    • 8.9.1
    • markdown/1.2
    • None
    • Unknown

    Description

      When parsing markdown/1.2 content, an inline HTML element without a closing tag (e.g. <br>, <img ...>) makes the whole rest of the paragraph become a single inline HTML macro. That content is then re-parsed without the configured Markdown extensions, so wiki links, macros, strikethrough, etc. are lost.

      Steps to reproduce

      Parse:

      a <br> [[Page]] ~~s~~ b
      

      Result

      onWord [a]
      onSpace
      onMacroInline [html] [clean=false] [<br> [[Page]] ~~s~~ b]
      

      Expected

      <br> is output as inline HTML and the rest of the paragraph is parsed as Markdown (wiki link, strikethrough).

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: