This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

WikiText parser mode: HTML examples

 22nd January 2022 at 6:05pm

<div>

* blank line after open tag allows
* block mode punctuation (i.e. this list) to
* be recognised
</div>

That renders as:

  • blank line after open tag allows
  • block mode punctuation (i.e. this list) to
  • be recognised


The open tag blank line "trick" also works inside of punctuation only recognised in inline mode (such as Formatting in WikiText):

''<div>

* list item one
* list item two
</div>''

That renders as:

  • list item one
  • list item two


<div>
* Open tag without a blank line means
* block mode punctuation (i.e. this list) will
* NOT be recognised.

Paragraphs are only recognised in block mode. Even with blank lines, new paragraphs are not recognised.

This also is not a new paragraph.
</div>

That renders as:

* Open tag without a blank line means * block mode punctuation (i.e. this list) will * NOT be recognised. Paragraphs are only recognised in block mode. Even with blank lines, new paragraphs are not recognised. This also is not a new paragraph.


Tables in WikiText is one construct for which the open tag blank line "trick" cannot work. In order for the parser to recognise a table row, the entire row must be on a single line.

Adding a blank link after an open tag within a table cell causes the row to span mulitple lines and the parser ceases to be able to recognise it as a table row.

|table row|all on|one line|is recognised|

That renders as:

table rowall onone lineis recognised

|For a blank line after open tag|<div>

* list is recognised
* but the surrounding table row is not
</div>|

That renders as:

|For a blank line after open tag|

  • list is recognised
  • but the surrounding table row is not
|


The only way to get block mode punctuation recognised in wikitext tables is to use $transclude with mode = block.

|Nested table:|<$transclude tiddler="table-example" mode=block/>|

That renders as:

Nested table:
cell onecell two
cell threecell four

Note that $macrocall does not have a similar mode attribute and the content of macro definitions can only be parsed in inline mode


The less convenient <table>, <tr>, <td> html tags can be used as a foolproof way to get block mode punctuation recognised inside of table cells.

<table>
<tr><td>

* list item one
* list item two
</td><td>

|nested|table|
</td></tr>
</table>

That renders as:

  • list item one
  • list item two
nestedtable