Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-134796

Markdown issues when parsing HTML <> tags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.10
    • GUI: Text handling
    • None

    Description

      I noticed this issue in Creator, which apparently uses QTextEdit::setMarkdown. Notice that the <test2> test3 and test4 are missing. I would expect that maybe it would not show the <test2> if that was causing it issues, but it should show the rest.

      Foo:
      
      ```
      var foo = (function () {
          // ...
      })();
      ```
      
      
      ## Test
      
      test1
      
      <test2> test3
      
      test4
      
      
      ```
      ==31822== Invalid read of size 8
      ==31822==    at 0x57D6DC9: data (qscopedpointer.h:140)
      ==31822==    by 0x57D6DC9: qGetPtrHelper<QScopedPointer<QObjectData> > (qglobal.h:1038)
      [...]
      

      https://dlaa.me/markdownlint/ shows some issues, but none that I would have thought would prevent it from rendering:

      9 - MD012 / no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] [Fix]
      18 - MD012 / no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] [Fix]
      14 - MD033 / no-inline-html Inline HTML [Element: test2]
      3 - MD040 / fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
      19 - MD040 / fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
      1 - MD041 / first-line-heading First line in a file should be a top-level heading [Context: "Foo:"]
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes