Uploaded image for project: 'DokuWiki tools'
  1. DokuWiki tools
  2. DOKUWIKI-40

Syntax inside table cells is not recognized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0
    • 1.3.6
    • Syntax
    • None
    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      DokuWiki supports (inline) syntax inside table cells like HTML, formatting, line breaks or links. However, XWiki's DokuWiki parser ignores syntax inside table cells. Reproduction test case:

      .#-----------------------------------------------------
      .input|dokuwiki/1.0
      .#-----------------------------------------------------
      ^HTML (aligns right)^Formatting (aligns center)^Links (aligns left)^
      |  <html>Some HTML</html> |  **Bold text**  |[[https://xwiki.org|a link]]\\ [[:|Start page]]  |
      
      Outside table
      .#-----------------------------------------------------
      .expect|event/1.0
      .#-----------------------------------------------------
      beginDocument
      beginTable
      beginTableRow
      beginTableHeadCell
      onWord [HTML]
      onSpace
      onWord [(aligns]
      onSpace
      onWord [right)]
      endTableHeadCell
      beginTableHeadCell
      onWord [Formatting]
      onSpace
      onWord [(aligns]
      onSpace
      onWord [center)]
      endTableHeadCell
      beginTableHeadCell
      onWord [Links]
      onSpace
      onWord [(aligns]
      onSpace
      onWord [left)]
      endTableHeadCell
      endTableRow
      beginTableRow
      beginTableCell [[align]=[centre]]
      onWord [<html>Some]
      onSpace
      onWord [HTML</html>]
      endTableCell [[align]=[centre]]
      beginTableCell [[align]=[centre]]
      onWord [**Bold]
      onSpace
      onWord [text**]
      endTableCell [[align]=[centre]]
      beginTableCell
      onWord [[[https://xwiki.org]
      endTableCell
      beginTableCell
      onWord [a]
      onSpace
      onWord [link]]\\]
      onSpace
      onWord [[[:]
      endTableCell
      beginTableCell [[align]=[left]]
      onWord [Start]
      onSpace
      onWord [page]]]
      endTableCell [[align]=[left]]
      endTableRow
      endTable
      beginParagraph
      onWord [
      Outside]
      onSpace
      onWord [table]
      endParagraph
      endDocument

      Notice also how "word" events contain line breaks or special characters.
       
      Rendering inside DokuWiki:

      Attachments

        Issue Links

          Activity

            People

              MichaelHamann Michael Hamann
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: