Skip to content

Commit

Permalink
Add rehype code highlighting to HVD docs (#2410)
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenSandwich committed Apr 15, 2024
1 parent 0c731fb commit 5ce233f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/validated-designs/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { rewriteStaticHVDAssetsPlugin } from 'lib/remark-plugins/rewrite-static-
import grayMatter from 'gray-matter'
import { ProductSlug } from 'types/products'
import { OutlineLinkItem } from 'components/outline-nav/types'
import { rehypeCodePlugins } from 'lib/rehype-code-plugins'

const basePath = '/validated-designs'

Expand Down Expand Up @@ -233,6 +234,7 @@ export async function getHvdGuidePropsFromSlug(
[remarkPluginAnchorLinkData, { anchorLinks }],
rewriteStaticHVDAssetsPlugin,
],
rehypePlugins: [...rehypeCodePlugins],
},
})

Expand Down

0 comments on commit 5ce233f

Please sign in to comment.