1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Loosened dash formatting rule

It no longer has to be followed by whitespace, instead it must be
followed by anything other than a dash.
This commit is contained in:
Jeremy Ruston 2012-12-20 09:26:59 +00:00
parent 5c2f698842
commit 2689f6b1e5

View File

@ -11,8 +11,6 @@ This is an en-dash: --
This is an em-dash: ---
}}}
Dashes must be followed by whitespace in order to be distinguished from strikethrough notation (`--strikethrough--`).
\*/
(function(){
@ -25,7 +23,7 @@ exports.name = "dash";
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /-{2,3}(?=\s)/mg;
this.matchRegExp = /-{2,3}[^-]/mg;
};
exports.parse = function() {