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

markdown writer doesn't correctly write blockquotes containing lists

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.0 Beta2
    • GUI: Text handling
    • None
    • f3e528b97 (dev), 3b4901d2d (6.7)

    Description

      I suppose the first question is whether we store enough information to know which way the nesting is, or we only know that we have a block quote and a list. Anyway the writer messes it up pretty badly.

      What if we have a quotation containing a list?
      
      > First some quoted text, and then a list:
      >
      > - one
      > - two is longer and has enough words to form a paragraph with text continuing
      >   onto the next line
      > 
      > enough of that, let's try a numbered list
      > 
      > 1. List item one
      > 2. List item two is longer and has enough words to form a paragraph with text
      >    continuing onto the next line.
      

      becomes

      What if we have a quotation containing a list?
      
      > First some quoted text, and then a list:
      
      - > one
      - > two is longer and has enough words to form a paragraph with text continuing
      >   onto the next line
      
      > enough of that, let's try a numbered list
      
      1.  > List item one
      2.  > List item two is longer and has enough words to form a paragraph with
      >     text continuing onto the next line.
      

      Or if the block quote begins with a list item, the fact that it was a blockquote gets lost.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-104997
          # Subject Branch Project Status CR V

          Activity

            People

              srutledg Shawn Rutledge
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes