feat(code): add tabbed codeblocks support (#710)

This commit is contained in:
Cell
2026-03-10 17:33:28 +08:00
committed by GitHub
parent 8bf2fea735
commit f2c112e402
5 changed files with 322 additions and 7 deletions
@@ -80,6 +80,10 @@
$lineNosDigit
)
-}}
{{- if $config.group -}}
{{- $tabTitle := $config.name | default (strings.FirstUpper .Type) | default "Code" -}}
{{- $wrapper = replace $wrapper (printf `class="%s"` $class) (printf `class="%s" data-tab-group="%s" data-tab-title="%s"` $class $config.group $tabTitle) -}}
{{- end -}}
{{- $wrapper =
replace $wrapper
(printf `class="%s"` $class)