mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-22 14:00:03 +00:00
Improve \parsermode documentation (#7214)
This commit is contained in:
parent
0039c2134b
commit
166f68cc15
@ -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.
|
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user