mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +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:
parent
5c2f698842
commit
2689f6b1e5
@ -11,8 +11,6 @@ This is an en-dash: --
|
|||||||
This is an em-dash: ---
|
This is an em-dash: ---
|
||||||
}}}
|
}}}
|
||||||
|
|
||||||
Dashes must be followed by whitespace in order to be distinguished from strikethrough notation (`--strikethrough--`).
|
|
||||||
|
|
||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
@ -25,7 +23,7 @@ exports.name = "dash";
|
|||||||
exports.init = function(parser) {
|
exports.init = function(parser) {
|
||||||
this.parser = parser;
|
this.parser = parser;
|
||||||
// Regexp to match
|
// Regexp to match
|
||||||
this.matchRegExp = /-{2,3}(?=\s)/mg;
|
this.matchRegExp = /-{2,3}[^-]/mg;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.parse = function() {
|
exports.parse = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user