1
0
mirror of synced 2026-01-20 21:02:43 -05:00

Code-headers plugin rewrite (#37654)

Co-authored-by: Peter Bengtsson <peterbe@github.com>
This commit is contained in:
Kevin Heis
2023-06-12 08:04:49 -07:00
committed by GitHub
parent 76af8ce4ab
commit 0c34f6d648
9 changed files with 75 additions and 166 deletions

View File

@@ -86,7 +86,8 @@ export async function convertContentToDocs(content, frontmatterDefaults = {}) {
visitParents(ast, matcher, (node, ancestors) => {
// Add the copy button to the example command
if (node.type === 'code' && node.value.startsWith(`codeql ${frontmatter.title}`)) {
node.lang = 'shell{:copy}'
node.lang = 'shell'
node.meta = 'copy'
}
// This is the beginning of a secondary options section. For example,