Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 3132ac6

Browse files
koddssonkeithamus
andcommitted
Minor changes to adhere to existing README.md
Co-authored-by: Keith Cirkel <[email protected]>
1 parent 8fa0ce6 commit 3132ac6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cem-plugin-readme.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function generateTitle({packageJson: {name}}) {
2424
.split('/')
2525
.at(-1)
2626
.replace(/-element$/, '')
27-
return `&lt;${formattedName}&gt; element`
27+
return escapeHTML(`<${formattedName}> element`)
2828
}
2929

3030
function generateImportInstructions({packageJson: {name}}) {
@@ -64,9 +64,8 @@ export function readme(options) {
6464
generateImportInstructions({packageJson}),
6565
]
6666
for (const module of customElementsManifest.modules) {
67-
for (const {name, tagName, description} of module.declarations.filter(x => x.customElement)) {
67+
for (const {name, description} of module.declarations.filter(x => x.customElement)) {
6868
if (exclude.includes(name)) continue
69-
content.push(`### ${tagName}`)
7069
content.push(description.trim())
7170
}
7271
}

0 commit comments

Comments
 (0)