Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-513

Wrong HTML output of list with html macro and wiki syntax on

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 9.11.4
    • Macro - HTML
    • Unknown

    Description

      Hello,

       

      If I use html macro with wiki syntax HTML output is wrong when I use 2 DIV and list.

      To reproduce this issue, here the wiki code:

       

      {{html wiki="true"}}
      <div class="p-2">
        Liste 1
        * one
        * two
        * three
      </div>
      <div class="p-2">
        Liste with HTML: KO
        * A
        * B
        * C
      </div>
      {{/html}}
      

      Here on the HTML output, we can see the second list with <ul>...</ul> inside the list (for each <li>...</li>):

      <div class="p-2">
        Liste 1
        <ul>
          <li>one</li>
          <li>two</li>
          <li>three</li>
        </ul>
      </div>
      <div class="p-2">
        Liste with HTML: KO
        <ul>
          <li>A</li>
        </ul>
        <ul>
          <li>B</li>
        </ul>
        <ul>
          <li>C</li>
        </ul>
      </div>
      

        

      Note that with this wiki syntax, this issue didn't occured:

      {{html wiki="true"}}
      (%% class="p-2"%) (((
        Liste 1
        * one
        * two
        * three
      )))
      (%% class="p-2"%) (((
        Liste between wiki syntax: OK
        * A
        * B
        * C
      )))
      {{/html}}
      

       

      Thxs

      Pascal B

       

       

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            Pbas Pascal BASTIEN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: