Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
fix(md-enhance): fix codegroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jun 4, 2022
1 parent 0e4c35e commit 1a25241
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/md-enhance/src/node/markdown-it/codeGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const codeGroup: PluginSimple = (md) => {

md.use(container, {
name: "code-group-item",
openRender: (info: string): string => {
openRender: (tokens, index) => {
const { info } = tokens[index];
const isActive = info.split(":").pop() === "active";

return `<CodeGroupItem title="${
Expand Down

0 comments on commit 1a25241

Please sign in to comment.