diff --git a/html.ts b/html.ts index 39602e2..c5a7818 100644 --- a/html.ts +++ b/html.ts @@ -53,7 +53,7 @@ export async function articleHtml(
${draftLabel} -

${article.title}

+

${titleHtml(article.title)}

User Avatar
@@ -77,12 +77,16 @@ export async function articleHtml( return htmlLayout({ title: pageTitle, body, metaHtml }); } +function titleHtml(title: string) { + return title.replace(/`([^`]+)`/g, "$1"); +} + function articleListItemHtml(article: Article): string { const formattedDate = localizeDate(article.publishedAt); return `