Add "commentpragma" html style rule (#5726)

* html-comment, that can be used in the pragma area

* add commentpragma test

* fix typo

* fix typo and change comments ab bit

* combine html-comment and pragma-comment and add some docs, how to use it

* Make docs simpler by removing caching info

* change h2 wording
This commit is contained in:
Mario Pietsch
2021-06-14 18:39:56 +02:00
committed by GitHub
parent 06318b7617
commit 9c0d6a46cc
3 changed files with 33 additions and 3 deletions

View File

@@ -117,7 +117,14 @@ describe("WikiText parser tests", function() {
[ { type : 'set', attributes : { name : { type : 'string', value : 'myMacro' }, value : { type : 'string', value : 'nothing' } }, children : [ ], params : [ ], isMacroDefinition : true } ]
);
});
it("should parse comment in pragma area. Comment will be INVISIBLE", function() {
expect(parse("<!-- comment in pragma area -->\n\\define aMacro()\nnothing\n\\end\n")).toEqual(
[ { type : 'set', attributes : { name : { type : 'string', value : 'aMacro' }, value : { type : 'string', value : 'nothing' } }, children : [ ], params : [ ], isMacroDefinition : true } ]
);
});
it("should parse inline macro calls", function() {