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:
29
core/ui/ControlPanel/Parsing.tid
Normal file
29
core/ui/ControlPanel/Parsing.tid
Normal 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">>
|
||||
Reference in New Issue
Block a user