Minor changes to adhere to existing README.md
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
This commit is contained in:
Родитель
8fa0ce656c
Коммит
3132ac6220
|
@ -24,7 +24,7 @@ function generateTitle({packageJson: {name}}) {
|
|||
.split('/')
|
||||
.at(-1)
|
||||
.replace(/-element$/, '')
|
||||
return `<${formattedName}> element`
|
||||
return escapeHTML(`<${formattedName}> element`)
|
||||
}
|
||||
|
||||
function generateImportInstructions({packageJson: {name}}) {
|
||||
|
@ -64,9 +64,8 @@ export function readme(options) {
|
|||
generateImportInstructions({packageJson}),
|
||||
]
|
||||
for (const module of customElementsManifest.modules) {
|
||||
for (const {name, tagName, description} of module.declarations.filter(x => x.customElement)) {
|
||||
for (const {name, description} of module.declarations.filter(x => x.customElement)) {
|
||||
if (exclude.includes(name)) continue
|
||||
content.push(`### ${tagName}`)
|
||||
content.push(description.trim())
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче