diff --git a/core/ui/ViewTemplate/body/rendered-plain-text.tid b/core/ui/ViewTemplate/body/rendered-plain-text.tid new file mode 100644 index 000000000..7ffc2572d --- /dev/null +++ b/core/ui/ViewTemplate/body/rendered-plain-text.tid @@ -0,0 +1,6 @@ +title: $:/core/ui/ViewTemplate/body/rendered-plain-text + +\whitespace trim +<$wikify name="text" text={{!!text}} type={{!!type}}> +<$codeblock code=<> language="css"/> + diff --git a/core/wiki/config/ViewTemplateBodyFilters.multids b/core/wiki/config/ViewTemplateBodyFilters.multids index 6b7de817d..6348cc036 100644 --- a/core/wiki/config/ViewTemplateBodyFilters.multids +++ b/core/wiki/config/ViewTemplateBodyFilters.multids @@ -1,6 +1,7 @@ title: $:/config/ViewTemplateBodyFilters/ tags: $:/tags/ViewTemplateBodyFilter +stylesheet: [tag[$:/tags/Stylesheet]then[$:/core/ui/ViewTemplate/body/rendered-plain-text]] system: [prefix[$:/boot/]] [prefix[$:/config/]] [prefix[$:/core/macros]] [prefix[$:/core/save/]] [prefix[$:/core/templates/]] [prefix[$:/core/ui/]split[/]count[]compare:number:eq[4]] [prefix[$:/info/]] [prefix[$:/language/]] [prefix[$:/languages/]] [prefix[$:/snippets/]] [prefix[$:/state/]] [prefix[$:/status/]] [prefix[$:/info/]] [prefix[$:/temp/]] +[!is[image]limit[1]then[$:/core/ui/ViewTemplate/body/code]] code-body: [field:code-body[yes]then[$:/core/ui/ViewTemplate/body/code]] import: [field:plugin-type[import]then[$:/core/ui/ViewTemplate/body/import]] diff --git a/core/wiki/peek-stylesheets.tid b/core/wiki/peek-stylesheets.tid index 546829ab4..7d9726fbe 100644 --- a/core/wiki/peek-stylesheets.tid +++ b/core/wiki/peek-stylesheets.tid @@ -23,11 +23,7 @@ title: $:/snippets/peek-stylesheets <$reveal type="match" state=<> text="yes" tag="div"> <$set name="source" tiddler=<>> <$wikify name="styles" text=<>> -
-
-<$text text=<>/>
-
-
+<$codeblock code=<> language="css"/> diff --git a/core/wiki/tags/ViewTemplateBodyFilter.tid b/core/wiki/tags/ViewTemplateBodyFilter.tid index 50c36da68..60eecdfa8 100644 --- a/core/wiki/tags/ViewTemplateBodyFilter.tid +++ b/core/wiki/tags/ViewTemplateBodyFilter.tid @@ -1,3 +1,3 @@ title: $:/tags/ViewTemplateBodyFilter -list: $:/config/ViewTemplateBodyFilters/system $:/config/ViewTemplateBodyFilters/code-body $:/config/ViewTemplateBodyFilters/import $:/config/ViewTemplateBodyFilters/plugin $:/config/ViewTemplateBodyFilters/hide-body $:/config/ViewTemplateBodyFilters/default +list: $:/config/ViewTemplateBodyFilters/stylesheet $:/config/ViewTemplateBodyFilters/system $:/config/ViewTemplateBodyFilters/code-body $:/config/ViewTemplateBodyFilters/import $:/config/ViewTemplateBodyFilters/plugin $:/config/ViewTemplateBodyFilters/hide-body $:/config/ViewTemplateBodyFilters/default diff --git a/editions/tw5.com/tiddlers/_tw_shared/styles.tid b/editions/tw5.com/tiddlers/_tw_shared/styles.tid index fc2d89eb5..b9e6e0f27 100644 --- a/editions/tw5.com/tiddlers/_tw_shared/styles.tid +++ b/editions/tw5.com/tiddlers/_tw_shared/styles.tid @@ -1,6 +1,5 @@ title: $:/_tw_shared/styles tags: $:/tags/Stylesheet TiddlyWikiSitesMenu -code-body: yes \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock diff --git a/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid b/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid index ac3a4f8eb..c0b812f8f 100644 --- a/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid +++ b/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid @@ -1,6 +1,5 @@ title: $:/_tw5.com/CustomStoryTiddlerTemplateDemo/Styles tags: $:/tags/Stylesheet -code-body: yes .tc-custom-tiddler-template { border: 3px solid <>; diff --git a/editions/tw5.com/tiddlers/system/doc-styles.tid b/editions/tw5.com/tiddlers/system/doc-styles.tid index 5b268a429..64ee9832d 100644 --- a/editions/tw5.com/tiddlers/system/doc-styles.tid +++ b/editions/tw5.com/tiddlers/system/doc-styles.tid @@ -1,4 +1,3 @@ -code-body: yes created: 20150117152612000 modified: 20220617125128201 tags: $:/tags/Stylesheet diff --git a/plugins/tiddlywiki/katex/styles.tid b/plugins/tiddlywiki/katex/styles.tid index 4ddb615c9..3e2ddc172 100644 --- a/plugins/tiddlywiki/katex/styles.tid +++ b/plugins/tiddlywiki/katex/styles.tid @@ -1,6 +1,5 @@ title: $:/plugins/tiddlywiki/katex/styles tags: [[$:/tags/Stylesheet]] -code-body: yes \rules only filteredtranscludeinline transcludeinline macrodef macrocallinline