docs: add highlight magic comments (#22367)

This commit is contained in:
GuoQing Liu
2026-03-10 21:18:02 +08:00
committed by GitHub
parent 1188d87588
commit 19480867fb
20 changed files with 78 additions and 42 deletions

View File

@@ -83,6 +83,17 @@ const config: Config = {
},
},
prism: {
magicComments:[
{
className: 'theme-code-block-highlighted-line',
line: 'highlight-next-line',
block: {start: 'highlight-start', end: 'highlight-end'},
},
{
className: 'code-block-error-line',
line: 'highlight-error-line',
},
],
additionalLanguages: ["bash", "json"],
},
languageTabs: [