Skip to content
This repository was archived by the owner on Dec 6, 2018. It is now read-only.

Commit d16a9a2

Browse files
committed
Output CustomTag nodes as HTMLElement nodes.
1 parent 4a6932f commit d16a9a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/printNode.js

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
module.exports = function printNode(node, printContext, writer) {
44
switch (node.type) {
55
case "HtmlElement":
6+
/**
7+
* CustomTag nodes are not created in raw parsing mode but should have
8+
* the same output as an HTMlElement node. This is added here to support
9+
* using Marko prettyprint when serializing a template for transform testing.
10+
*/
11+
case "CustomTag":
612
return this.printHtmlElement(node, printContext, writer);
713
case "Text":
814
return this.printText(node, printContext, writer);

0 commit comments

Comments
 (0)