1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-06 16:58:05 +00:00

First pass at global disabling of parser rules

This is to address #1875 more quickly than via #345.

This commit only includes a partial implementation of the UI - see the
ticket for details.
This commit is contained in:
Jermolene
2015-07-30 12:28:29 +01:00
parent 9e1741a549
commit d5e690a06d
4 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
title: $:/core/ui/ControlPanel/Parsing
tags: $:/tags/ControlPanel
caption: Parsing
\define parsing-inner(typeCap)
<li>
<$checkbox tiddler="""$:/config/WikiParserRules/$typeCap$/$(currentTiddler)$""" field="text" checked="enable" unchecked="disable" default="enable"> ''<$text text=<<currentTiddler>>/>'': </$checkbox>
</li>
\end
\define parsing-outer(typeLower,typeCap)
<ul>
<$list filter="[wikiparserrules[$typeLower$]]">
<<parsing-inner typeCap:"$typeCap$">>
</$list>
</ul>
\end
! Pragma Parse Rules
<<parsing-outer typeLower:"pragma" typeCap:"Pragma">>
! Inline Parse Rules
<<parsing-outer typeLower:"inline" typeCap:"Inline">>
! Block Parse Rules
<<parsing-outer typeLower:"block" typeCap:"Block">>