diff --git a/core/modules/parsers/newwikitextparser/rules/comment.js b/core/modules/parsers/newwikitextparser/rules/comment.js new file mode 100644 index 000000000..be29fe142 --- /dev/null +++ b/core/modules/parsers/newwikitextparser/rules/comment.js @@ -0,0 +1,33 @@ +/*\ +title: $:/core/modules/parsers/newwikitextparser/rules/comment.js +type: application/javascript +module-type: wikitextrule + +Wiki text run rule for HTML comments. For example: + +{{{ + +}}} + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +exports.name = "comment"; + +exports.blockParser = true; +exports.runParser = true; + +// Regexp by Stephen Ostermiller, http://ostermiller.org/findhtmlcomment.html + +exports.regExpString = "\\"; + +exports.parse = function(match,isBlock) { + this.pos = match.index + match[0].length; + return this.parseBlock(); +}; + +})(); diff --git a/core/templates/PageTemplate.tid b/core/templates/PageTemplate.tid index e757a5b1e..58034c537 100644 --- a/core/templates/PageTemplate.tid +++ b/core/templates/PageTemplate.tid @@ -1,31 +1,39 @@ title: $:/templates/PageTemplate + << + {{navigation-panel{ << <> >> }}} + <> +