Adds support for indenting pragmas with whitespace (#7185)

* feat: first pass at allowing pragmas to be indented

* Added documentation
This commit is contained in:
Saq Imtiaz
2023-01-08 14:17:01 +01:00
committed by GitHub
parent 7b7063a7b2
commit dd6e00687b
9 changed files with 117 additions and 7 deletions

View File

@@ -0,0 +1,36 @@
title: Macros/NestedMacros-indented
description: Nested Macros-indented
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
\define outer()
\whitespace trim
\define middle()
\whitespace trim
\define inner()
\whitespace trim
Jaguar
\end inner
<<inner>>
\end middle
<<middle>>
\end outer
<<outer>>
+
title: ExpectedResult
<p>Jaguar</p>

View File

@@ -0,0 +1,36 @@
title: Macros/NestedMacros-indented2
description: Nested Macros-indented with spaces
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
\whitespace trim
\define outer()
\whitespace trim
\define middle()
\whitespace trim
\define inner()
\whitespace trim
Jaguar
\end inner
<<inner>>
\end middle
<<middle>>
\end outer
<<outer>>
+
title: ExpectedResult
<p>Jaguar</p>