kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fixed wikitext rule for CSS classes to not erroneously match `{{{`
rodzic
506519b49a
commit
aa4d435a67
|
@ -16,11 +16,11 @@ exports.name = "class";
|
||||||
|
|
||||||
exports.blockParser = true;
|
exports.blockParser = true;
|
||||||
|
|
||||||
exports.regExpString = "\\{\\{(?:[^\\{\\r\\n]*)\\{$";
|
exports.regExpString = "\\{\\{(?:[^\\{\\r\\n]+)\\{$";
|
||||||
|
|
||||||
exports.parse = function(match) {
|
exports.parse = function(match) {
|
||||||
var tree = [],
|
var tree = [],
|
||||||
reStart = /\{\{([^\{\r\n]*){(?:\r?\n)?/mg,
|
reStart = /\{\{([^\{\r\n]+){(?:\r?\n)?/mg,
|
||||||
reEnd = /(\}\}\}$(?:\r?\n)?)/mg,
|
reEnd = /(\}\}\}$(?:\r?\n)?)/mg,
|
||||||
endMatch;
|
endMatch;
|
||||||
reStart.lastIndex = this.pos;
|
reStart.lastIndex = this.pos;
|
||||||
|
|
|
@ -9,6 +9,10 @@ One two three four. With a link to HelloThere. And a link to TiddlyWiki and Tidd
|
||||||
|
|
||||||
Here's a paragraph with an embedded macro <<image "Motovun Jack.jpg">> and that was it.
|
Here's a paragraph with an embedded macro <<image "Motovun Jack.jpg">> and that was it.
|
||||||
|
|
||||||
|
{{{
|
||||||
|
This will be mono
|
||||||
|
}}}
|
||||||
|
|
||||||
Here is a macro <<list all>>
|
Here is a macro <<list all>>
|
||||||
|
|
||||||
! This is a new heading
|
! This is a new heading
|
||||||
|
|
Ładowanie…
Reference in New Issue