Add parsermode pragma

Fixes #7058
This commit is contained in:
jeremy@jermolene.com
2022-11-23 22:35:32 +00:00
parent 882e040e62
commit 00927d2e13
5 changed files with 125 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
title: Pragmas/Parsermode
description: parsermode pragma
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
{{AlwaysInline}}
{{AlwaysBlock}}
{{AlwaysInline}}{{AlwaysBlock}}
+
title: AlwaysInline
\parsermode inline
! Not Heading
Text with ''bold''
+
title: AlwaysBlock
\parsermode block
! Heading
Text with ''bold''
+
title: ExpectedResult
! Not Heading
Text with <strong>bold</strong><h1 class="">Heading</h1><p>Text with <strong>bold</strong></p><p>! Not Heading
Text with <strong>bold</strong><h1 class="">Heading</h1><p>Text with <strong>bold</strong></p>
</p>