kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Loosened dash formatting rule
It no longer has to be followed by whitespace, instead it must be followed by anything other than a dash.print-window-tiddler
rodzic
5c2f698842
commit
2689f6b1e5
|
@ -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() {
|
||||
|
|
Ładowanie…
Reference in New Issue