diff --git a/src/node/markdown/plugins/containers.ts b/src/node/markdown/plugins/containers.ts index bbed26ae..03be3abc 100644 --- a/src/node/markdown/plugins/containers.ts +++ b/src/node/markdown/plugins/containers.ts @@ -2,9 +2,7 @@ import type MarkdownIt from 'markdown-it' import container from 'markdown-it-container' import type { RenderRule } from 'markdown-it/lib/renderer.mjs' import type Token from 'markdown-it/lib/token.mjs' -import { nanoid } from 'nanoid' import type { MarkdownEnv } from '../../shared' - import { extractTitle, getAdaptiveThemeMarker, @@ -86,7 +84,6 @@ function createCodeGroup(options: Options, md: MarkdownIt): ContainerArgs { { render(tokens, idx) { if (tokens[idx].nesting === 1) { - const name = nanoid(5) let tabs = '' let checked = 'checked' @@ -110,8 +107,7 @@ function createCodeGroup(options: Options, md: MarkdownIt): ContainerArgs { ) if (title) { - const id = nanoid(7) - tabs += `` + tabs += `` if (checked && !isHtml) tokens[i].info += ' active' checked = '' @@ -119,9 +115,7 @@ function createCodeGroup(options: Options, md: MarkdownIt): ContainerArgs { } } - return `
${tabs}
\n` + return `
${tabs}
\n` } return `
\n` }