mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-25 16:36:52 +00:00
Improvements to parser rule configuration
* Ignore parser rule configuration in safe mode * Made text translatable * Added new setting for camelcase links * Added warning on parser rule configuration tab See #1875
This commit is contained in:
parent
d5e690a06d
commit
58188cf805
@ -38,6 +38,11 @@ Palette/Editor/Reset/Caption: reset
|
|||||||
Palette/HideEditor/Caption: hide editor
|
Palette/HideEditor/Caption: hide editor
|
||||||
Palette/Prompt: Current palette:
|
Palette/Prompt: Current palette:
|
||||||
Palette/ShowEditor/Caption: show editor
|
Palette/ShowEditor/Caption: show editor
|
||||||
|
Parsing/Caption: Parsing
|
||||||
|
Parsing/Hint: Here you can globally disable individual wiki parser rules. Take care as disabling some paser rules can prevent ~TiddlyWiki functioning correctly (you can restore normal operation with [[safe mode|http://tiddlywiki.com/#SafeMode]] )
|
||||||
|
Parsing/Block/Caption: Block Parse Rules
|
||||||
|
Parsing/Inline/Caption: Inline Parse Rules
|
||||||
|
Parsing/Pragma/Caption: Pragma Parse Rules
|
||||||
Plugins/Add/Hint: Install plugins from the official library
|
Plugins/Add/Hint: Install plugins from the official library
|
||||||
Plugins/Add/Caption: Get more plugins
|
Plugins/Add/Caption: Get more plugins
|
||||||
Plugins/Caption: Plugins
|
Plugins/Caption: Plugins
|
||||||
@ -71,6 +76,9 @@ Settings/AutoSave/Caption: Autosave
|
|||||||
Settings/AutoSave/Disabled/Description: Do not save changes automatically
|
Settings/AutoSave/Disabled/Description: Do not save changes automatically
|
||||||
Settings/AutoSave/Enabled/Description: Save changes automatically
|
Settings/AutoSave/Enabled/Description: Save changes automatically
|
||||||
Settings/AutoSave/Hint: Automatically save changes during editing
|
Settings/AutoSave/Hint: Automatically save changes during editing
|
||||||
|
Settings/CamelCase/Caption: Camel Case Wiki Links
|
||||||
|
Settings/CamelCase/Hint: You can globally disable automatic linking of ~CamelCase phrases. Requires reload to take effect
|
||||||
|
Settings/CamelCase/Description: Enable automatic ~CamelCase linking
|
||||||
Settings/Caption: Settings
|
Settings/Caption: Settings
|
||||||
Settings/Hint: These settings let you customise the behaviour of TiddlyWiki.
|
Settings/Hint: These settings let you customise the behaviour of TiddlyWiki.
|
||||||
Settings/NavigationAddressBar/Caption: Navigation Address Bar
|
Settings/NavigationAddressBar/Caption: Navigation Address Bar
|
||||||
|
@ -66,12 +66,13 @@ var WikiParser = function(type,text,options) {
|
|||||||
*/
|
*/
|
||||||
WikiParser.prototype.setupRules = function(proto,configPrefix) {
|
WikiParser.prototype.setupRules = function(proto,configPrefix) {
|
||||||
var self = this;
|
var self = this;
|
||||||
$tw.utils.each(proto,function(object,name) {
|
if(!$tw.safemode) {
|
||||||
if(self.wiki.getTiddlerText(configPrefix + name,"enable") !== "enable") {
|
$tw.utils.each(proto,function(object,name) {
|
||||||
delete proto[name];
|
if(self.wiki.getTiddlerText(configPrefix + name,"enable") !== "enable") {
|
||||||
console.log("deleting",name)
|
delete proto[name];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
title: $:/core/ui/ControlPanel/Parsing
|
title: $:/core/ui/ControlPanel/Parsing
|
||||||
tags: $:/tags/ControlPanel
|
tags: $:/tags/ControlPanel/Advanced
|
||||||
caption: Parsing
|
caption: {{$:/language/ControlPanel/Parsing/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ControlPanel/Parsing/
|
||||||
|
|
||||||
\define parsing-inner(typeCap)
|
\define parsing-inner(typeCap)
|
||||||
<li>
|
<li>
|
||||||
@ -16,14 +18,16 @@ caption: Parsing
|
|||||||
</ul>
|
</ul>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
! Pragma Parse Rules
|
<<lingo Hint>>
|
||||||
|
|
||||||
|
! <<lingo Pragma/Caption>>
|
||||||
|
|
||||||
<<parsing-outer typeLower:"pragma" typeCap:"Pragma">>
|
<<parsing-outer typeLower:"pragma" typeCap:"Pragma">>
|
||||||
|
|
||||||
! Inline Parse Rules
|
! <<lingo Inline/Caption>>
|
||||||
|
|
||||||
<<parsing-outer typeLower:"inline" typeCap:"Inline">>
|
<<parsing-outer typeLower:"inline" typeCap:"Inline">>
|
||||||
|
|
||||||
! Block Parse Rules
|
! <<lingo Block/Caption>>
|
||||||
|
|
||||||
<<parsing-outer typeLower:"block" typeCap:"Block">>
|
<<parsing-outer typeLower:"block" typeCap:"Block">>
|
||||||
|
8
core/ui/ControlPanel/Settings/CamelCase.tid
Normal file
8
core/ui/ControlPanel/Settings/CamelCase.tid
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/Settings/CamelCase
|
||||||
|
tags: $:/tags/ControlPanel/Settings
|
||||||
|
caption: {{$:/language/ControlPanel/Settings/CamelCase/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/ControlPanel/Settings/CamelCase/
|
||||||
|
<<lingo Hint>>
|
||||||
|
|
||||||
|
<$checkbox tiddler="$:/config/WikiParserRules/Inline/wikilink" field="text" checked="enable" unchecked="disable" default="enable"> <$link to="$:/config/WikiParserRules/Inline/wikilink"><<lingo Description>></$link> </$checkbox>
|
@ -20,5 +20,7 @@ Safe mode triggers two changes:
|
|||||||
|
|
||||||
* All plugins are temporarily disabled. You can use the control panel to disable individual plugins
|
* All plugins are temporarily disabled. You can use the control panel to disable individual plugins
|
||||||
* Any tiddlers that override shadow tiddlers are renamed to give them the prefix `SAFE: `, thus restoring the underlying shadow tiddler
|
* Any tiddlers that override shadow tiddlers are renamed to give them the prefix `SAFE: `, thus restoring the underlying shadow tiddler
|
||||||
|
* Certain configuration options are ignored, and the default settings used instead:
|
||||||
|
** WikiParserRuleConfiguration
|
||||||
|
|
||||||
A report tiddler is displayed that allows you to inspect the tiddlers that were renamed.
|
A report tiddler is displayed that allows you to inspect the tiddlers that were renamed.
|
||||||
|
Loading…
Reference in New Issue
Block a user