docs: add highlight magic comments (#22367)

This commit is contained in:
GuoQing Liu authored and GitHub committed 2026-03-10 07:18:02 -06:00
1 parent 1188d87588
commit 19480867fb
20 files changed
+78 -42

No files matched your search

+11
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: [