mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 15:24:39 +00:00
Fixed problem with HTML inline parse rule
We were incorrectly eating line breaks after self-closing inline HTML tags
This commit is contained in:
@@ -34,7 +34,7 @@ exports.init = function(parser) {
|
||||
if(this.is.block) {
|
||||
this.matchRegExp = /<(\$)?([A-Za-z]+)(\s*[^>]*?)(\/)?>(\r?\n)/mg;
|
||||
} else {
|
||||
this.matchRegExp = /<(\$)?([A-Za-z]+)(\s*[^>]*?)(\/)?>(\r?\n)?/mg;
|
||||
this.matchRegExp = /<(\$)?([A-Za-z]+)(\s*[^>]*?)(?:(\/>)|(?:>(\r?\n)?))/mg;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user