mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-07-03 18:42:50 +00:00
Update widget name policy (#7510)
This commit is contained in:
parent
73b23f48a0
commit
b61c01d8b0
@ -200,7 +200,7 @@ function tw_filteredtranscludeinline(state,silent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// based on markdown-it html_block()
|
// based on markdown-it html_block()
|
||||||
var WidgetTagRegEx = [/^<\/?\$[a-zA-Z0-9\-\$]+(?=(\s|\/?>|$))/, /^$/];
|
var WidgetTagRegEx = [/^<\/?\$[a-zA-Z0-9\-\$\.]+(?=(\s|\/?>|$))/, /^$/];
|
||||||
function tw_block(state,startLine,endLine,silent) {
|
function tw_block(state,startLine,endLine,silent) {
|
||||||
var i, nextLine, token, lineText,
|
var i, nextLine, token, lineText,
|
||||||
pos = state.bMarks[startLine] + state.tShift[startLine],
|
pos = state.bMarks[startLine] + state.tShift[startLine],
|
||||||
@ -364,7 +364,7 @@ function tw_prettyextlink(state,silent) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var TWCloseTagRegEx = /<\/\$[A-Za-z0-9\-\$]+\s*>/gm;
|
var TWCloseTagRegEx = /<\/\$[A-Za-z0-9\-\$\.]+\s*>/gm;
|
||||||
function extendHtmlInline(origRule) {
|
function extendHtmlInline(origRule) {
|
||||||
return function(state,silent) {
|
return function(state,silent) {
|
||||||
if(origRule(state,silent)) {
|
if(origRule(state,silent)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user