Details
-
Bug
-
Resolution: Solved By
-
Major
-
None
-
1.3.6
-
None
-
Unknown
-
Description
While fixing DOKUWIKI-18, I noticed that the parser doesn't pay attention if a syntax is at the start of a line or not. This means that something like _ (recognized as smiley in DokuWiki) is recognized as a table cell when it appears, e.g., at the start of a list item as in the syntax guide. Similarly, a list is recognized when two spaces are followed by * at the beginning of another syntax:
.#----------------------------------------------------- .input|dokuwiki/1.0 .#----------------------------------------------------- This is // * not a list//. * ^_^ %% ^_^ %% .#----------------------------------------------------- .expect|event/1.0 .#----------------------------------------------------- beginDocument beginParagraph onWord [This] onSpace onWord [is] onSpace beginList [BULLETED] beginListItem beginFormat [ITALIC] onWord [not] onSpace onWord [a] onSpace onWord [list] endFormat [ITALIC] onSpecialSymbol [.] endListItem beginListItem beginTable beginTableRow beginTableHeadCell onSpecialSymbol [_] endTableHeadCell beginTableHeadCell [[align]=[centre]] onWord [%%] endTableHeadCell [[align]=[centre]] beginTableHeadCell onSpecialSymbol [_] endTableHeadCell beginTableHeadCell [[align]=[right]] onSpecialSymbol [%] endTableHeadCell [[align]=[right]] endTableRow endTable endListItem endList [BULLETED] endParagraph endDocument .#----------------------------------------------------- .expect|xwiki/2.1 .#----------------------------------------------------- This is * //not a list//. * |=_|=(% align="centre" %)%%|=_|=(% align="right" %)%
Attachments
Issue Links
- relates to
-
DOKUWIKI-19 Issue importing pages with character '>' in content
- Closed
-
DOKUWIKI-40 Syntax inside table cells is not recognized
- Closed