Skip to content

Commit

Permalink
Merge pull request #5 from marko-js/issue-4
Browse files Browse the repository at this point in the history
fix: tag name case normalization
  • Loading branch information
DylanPiercey authored Mar 12, 2022
2 parents a7b061e + 7dac0c4 commit 42d0f7e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<aBcDefg/>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aBcDefg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<aBcDefg/>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<aBcDefg/>
1 change: 1 addition & 0 deletions src/__tests__/fixtures/tag-name-casing.marko
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<aBcDefg/>
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const printers: Record<string, Printer<Node>> = {
const doc: Doc[] = [opts.markoSyntax === "html" ? "<" : ""];
const { markoPreservingSpace } = opts;
const literalTagName = t.isStringLiteral(node.name)
? node.name.value.toLowerCase()
? node.name.value
: "";
const preserveSpace =
markoPreservingSpace ||
Expand Down

0 comments on commit 42d0f7e

Please sign in to comment.