mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-07 09:18:06 +00:00
Use double linebreaks to indicate content of a widget or html element should be parsed in block mode
Fixes #82. The old behaviour was to parse the content of a widget or html element in block mode if the opening tag was followed by a line break. The new behaviour requires two line breaks. This makes it possible to include linebreaks more liberally within wikitext, although care must still be taken to only use double line breaks when the block mode behaviour is desired. The code change here is very simple, just a single line change in html.js. Most of the other changes are to convert various single line breaks into double line breaks.
This commit is contained in:
@@ -3,13 +3,19 @@ tags: $:/tags/ControlPanel/Appearance
|
||||
caption: {{$:/language/ControlPanel/Appearance/Palette/Caption}}
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Appearance/Palette/
|
||||
|
||||
{{$:/snippets/paletteswitcher}}
|
||||
|
||||
<$reveal type="nomatch" state="$:/state/ShowPaletteEditor" text="yes">
|
||||
|
||||
<$button set="$:/state/ShowPaletteEditor" setTo="yes"><<lingo ShowEditor/Caption>></$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" state="$:/state/ShowPaletteEditor" text="yes">
|
||||
<$button set="$:/state/ShowPaletteEditor" setTo="no"><<lingo HideEditor/Caption>></$button>
|
||||
{{$:/snippets/paletteeditor}}
|
||||
|
||||
</$reveal>
|
||||
|
||||
<$reveal type="match" state="$:/state/ShowPaletteEditor" text="yes">
|
||||
|
||||
<$button set="$:/state/ShowPaletteEditor" setTo="no"><<lingo HideEditor/Caption>></$button>
|
||||
{{$:/snippets/paletteeditor}}
|
||||
|
||||
</$reveal>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user