https://bugs.kde.org/show_bug.cgi?id=431416

            Bug ID: 431416
           Summary: Markdown text not displayed after unclosed HTML tag.
           Product: markdownpart
           Version: unspecified
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kosse...@kde.org
          Reporter: o.ha...@gmail.com
  Target Milestone: ---

Created attachment 134727
  --> https://bugs.kde.org/attachment.cgi?id=134727&action=edit
Screenshot of Issue

SUMMARY
When a markdown document contains a raw HTML tag (e.g. <p>) that is neither
self-closing (<p />) nor followed by a closing tag (</p>), all text and
headings after this point are not displayed in the preview. Only very few
constructs are displayed at all, including the contents of fenced or indented
code blocks and the bullet points of ordered and unordered lists, but not the
actual list items.

This even happens when the offending tag is enclosed in another properly closed
tag like <div>...</div> or when it is commented out using <!-- ... -->. The
latter seems particularly strange to me.

STEPS TO REPRODUCE
1. Create a markdown file containing the following:

    # Before Tag
    Text before tag.

    <p>

    # After Tag
    Text after tag.
    ```
    code after tag
    ```

2. Display the file in markdownpart, i.e. using the document preview of Kate.

OBSERVED RESULT
The heading ”After Tag” and the text “Text after tag.” is not displayed. See
the attachment for a screenshot.

EXPECTED RESULT
The part of the document after the unclosed tag is rendered like the part
before the tag.

SOFTWARE/OS VERSIONS
Linux Version: Manjaro Linux 20.2.1
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to