mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +00:00
Fixed custom classes containing a dash
This commit is contained in:
parent
ed6cc0b7e3
commit
bfc1f1aaa5
@ -122,7 +122,7 @@ var rules = [
|
|||||||
rowTypes: {"c":"caption", "h":"thead", "":"tbody", "f":"tfoot"},
|
rowTypes: {"c":"caption", "h":"thead", "":"tbody", "f":"tfoot"},
|
||||||
handler: function(w)
|
handler: function(w)
|
||||||
{
|
{
|
||||||
var table = Renderer.ElementNode("table",{"class": "twtable"},[]);
|
var table = Renderer.ElementNode("table",{"class": "table"},[]);
|
||||||
w.output.push(table);
|
w.output.push(table);
|
||||||
var prevColumns = [];
|
var prevColumns = [];
|
||||||
var currRowType = null;
|
var currRowType = null;
|
||||||
@ -646,7 +646,7 @@ var rules = [
|
|||||||
w.subWikifyTerm(e.children,/(@@)/mg);
|
w.subWikifyTerm(e.children,/(@@)/mg);
|
||||||
break;
|
break;
|
||||||
case "{{":
|
case "{{":
|
||||||
var lookaheadRegExp = /\{\{[\s]*([\w]+[\s\w]*)[\s]*\{(\n?)/mg;
|
var lookaheadRegExp = /\{\{[\s]*([\-\w]+[\-\s\w]*)[\s]*\{(\n?)/mg;
|
||||||
lookaheadRegExp.lastIndex = w.matchStart;
|
lookaheadRegExp.lastIndex = w.matchStart;
|
||||||
var lookaheadMatch = lookaheadRegExp.exec(w.source);
|
var lookaheadMatch = lookaheadRegExp.exec(w.source);
|
||||||
if(lookaheadMatch) {
|
if(lookaheadMatch) {
|
||||||
|
Loading…
Reference in New Issue
Block a user