1
0
mirror of synced 2026-01-22 00:01:39 -05:00

Upgrade all rehype and remark (#43021)

This commit is contained in:
Peter Bengtsson
2023-09-22 07:58:32 -04:00
committed by GitHub
parent fb3cdbea98
commit 384c12e8d7
5 changed files with 1199 additions and 1992 deletions

View File

@@ -6,6 +6,7 @@ import remark2rehype from 'remark-rehype'
import raw from 'rehype-raw'
import slug from 'rehype-slug'
import highlight from 'rehype-highlight'
import { common } from 'lowlight'
import dockerfile from 'highlight.js/lib/languages/dockerfile'
import http from 'highlight.js/lib/languages/http'
import groovy from 'highlight.js/lib/languages/groovy'
@@ -42,7 +43,7 @@ export function createProcessor(context) {
.use(codeHeader)
.use(annotate)
.use(highlight, {
languages: { graphql, dockerfile, http, groovy, erb, powershell },
languages: { ...common, graphql, dockerfile, http, groovy, erb, powershell },
subset: false,
})
.use(raw)