Improve \parsermode documentation (#7214)

This commit is contained in:
yaisog 2023-01-17 13:31:07 +01:00 committed by GitHub
parent 0039c2134b
commit 166f68cc15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 12 deletions

View File

@ -1,5 +1,5 @@
created: 20150219175930000
modified: 20220122182842041
modified: 20230117112239663
tags: Concepts [[WikiText Parser Modes]]
title: Pragma
type: text/vnd.tiddlywiki
@ -17,4 +17,6 @@ The following pragmas are available:
;`\whitespace trim` or `\whitespace notrim`
: <<.from-version "5.1.15">> Control whether whitespace is trimmed from the start and end of text runs (the default is ''notrim''). This setting can be useful when the whitespace generated by linebreaks disturbs formatting
;`\import <filter-expression>`
: <<.from-version "5.1.18">> for importing macro definitions from tiddlers identified by a filter expression
: <<.from-version "5.1.18">> Import macro definitions from tiddlers identified by a filter expression
;`\parsermode block` or `\parsermode inline`
: <<.from-version "5.2.4">> Adjust whether the remaining text is parsed in block mode or inline mode.

View File

@ -1,17 +1,13 @@
created: 20221123223127425
modified: 20221123223127425
tags: Pragmas
modified: 20230117112244779
tags: Pragma
title: Pragma: \parsermode
type: text/vnd.tiddlywiki
The ''\parsermode'' [[pragma|Pragmas]] adjusts whether the remaining text is parsed in block mode or inline mode. See [[WikiText Parser Modes]] for details of parser modes.
<<.from-version "5.2.4">>
```
\parsermode block|inline
```
The ''\parsermode'' [[pragma|Pragma]] adjusts whether the remaining text is parsed in block mode or inline mode. See [[WikiText Parser Modes]] for details of parser modes.
For example:
As with all pragmas, setting the parser mode this way can only be done at the start of text, not within the main body of the text.
```
\parsermode inline
```
;`\parsermode block` or `\parsermode inline`