html tags in code blocks in tables

67 views
Skip to first unread message

Carl Bäckström

unread,
Sep 6, 2015, 3:33:25 PM9/6/15
to TiddlyWiki
I am trying to write a table that contains html tags in code blocks like this.

| !Header1 | !Header2 | !Header3| !Header4|
|Match all html headers|<H[123456] | `<H1>` |test |

But the html tag seem to destroy the rendering of the table even though it is enclosed by a code block.

whatever

unread,
Sep 6, 2015, 3:49:55 PM9/6/15
to TiddlyWiki
Hi!
Which version are you using? TWC or TW5? For Classic, you need the HTMLFormattingPlugin (1) to mix HTML and markdown. Not sure about TW5.

(1) http://www.tiddlytools.com/#HTMLFormattingPlugin

w

Carl Bäckström

unread,
Sep 7, 2015, 2:06:52 AM9/7/15
to TiddlyWiki
I am using TW5.

And just to clarify I want the html tag to be shown as text instead of being rendered.

Mat

unread,
Sep 7, 2015, 2:11:03 AM9/7/15
to TiddlyWiki
(Svensk?)


| !Header1 | !Header2 | !Header3| !Header4|
|Match all html headers|<H[123456] | `<H1>` |test |


Using TW5 what seems to mess it up is the initial < before the H[123. If you can accept a blank space between the < and the H, then it works. I suspect that the immediate character after the opening < is interpreted as a merge cell character that breaks the table. See "Tables in WikiText"

<:-)

Mat

unread,
Sep 7, 2015, 2:12:41 AM9/7/15
to TiddlyWiki
Add: In other words, it is not your "html tag" (by which I assume you refer to the `<H1>` that breaks the table.

whatever

unread,
Sep 7, 2015, 10:28:29 AM9/7/15
to TiddlyWiki
Have you tried using entities?
&gt; for >
&lt; for <
So: &lt;H1&gt;
w
Reply all
Reply to author
Forward
0 new messages