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

Inline line break HTML tag is parsed as an HTML macro instead of a new line

    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 <br> (or <br/>) HTML tag generates an inline HTML macro instead of a new line event.

      This is the form used when rendering a line break located in a table cell (since Markdown table rows must fit on a single line), so a line break in a table cell becomes an HTML macro after a round trip (e.g. when editing with the WYSIWYG editor).

      Steps to reproduce

      Parse:

      a<br>b
      

      Result

      onWord [a]
      onMacroInline [html] [clean=false] [<br>]
      onWord [b]
      

      Expected

      onWord [a]
      onNewLine
      onWord [b]
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: