Skip to content

Commit c002db4

Browse files
authored
fix legacy mode toggles (#316)
1 parent 72e2f43 commit c002db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/site-kit/src/lib/markdown/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export async function render_content_markdown(
280280
blockquote(token) {
281281
let content = this.parser?.parse(token.tokens) ?? '';
282282
if (content.includes('[!LEGACY]')) {
283-
content = `<details class="legacy"><summary><label>Legacy mode <button class="raised"></button></label></summary>${content.replace('[!LEGACY]', '')}</details>`;
283+
content = `<details class="legacy"><summary>Legacy mode</summary>${content.replace('[!LEGACY]', '')}</details>`;
284284
}
285285
return `<blockquote>${content}</blockquote>`;
286286
}

0 commit comments

Comments
 (0)