web/elements: fix linting error

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-16 12:26:14 +01:00
parent eb9593a847
commit 0a2c1eb419

View file

@ -25,7 +25,7 @@ export class Markdown extends LitElement {
if (!this.md) { if (!this.md) {
return html``; return html``;
} }
const finalHTML = this.md?.html.replace("<ul>", "<ul class=\"pf-c-list\">"); const finalHTML = this.md?.html.replace("<ul>", "<ul class='pf-c-list'>");
return html`${this.md?.metadata.title ? html`<h2>${this.md.metadata.title}</h2>` : html``} return html`${this.md?.metadata.title ? html`<h2>${this.md.metadata.title}</h2>` : html``}
${unsafeHTML(finalHTML)}`; ${unsafeHTML(finalHTML)}`;
} }