1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 23:40:45 +00:00

Fixed custom classes containing a dash

This commit is contained in:
Jeremy Ruston 2012-03-05 15:13:52 +00:00
parent ed6cc0b7e3
commit bfc1f1aaa5

View File

@ -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) {