1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +00:00

Check for dollar sign within HTML element name

Fixes #3091
This commit is contained in:
Jermolene 2018-01-16 22:13:40 +00:00
parent 6350f55e25
commit ff6aa0570f

View File

@ -97,6 +97,9 @@ exports.parseTag = function(source,pos,options) {
return null;
}
node.tag = token.match[1];
if(node.tag.slice(1).indexOf("$") !== -1) {
return null;
}
if(node.tag.charAt(0) === "$") {
node.type = node.tag.substr(1);
}