@brillout/docpress 0.16.5 → 0.16.7-commit-fc2ed19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/vite.config.ts CHANGED
@@ -6,10 +6,13 @@ import type { PluginOption, UserConfig } from 'vite'
6
6
  import { parsePageSections } from './parsePageSections.js'
7
7
  import rehypePrettyCode from 'rehype-pretty-code'
8
8
  import remarkGfm from 'remark-gfm'
9
+ import remarkDirective from 'remark-directive'
9
10
  import { transformerNotationDiff } from '@shikijs/transformers'
10
11
  import { rehypeMetaToProps } from './code-blocks/rehypeMetaToProps.js'
11
12
  import { remarkDetype } from './code-blocks/remarkDetype.js'
12
13
  import { shikiTransformerAutoLinks } from './code-blocks/shikiTransformerAutoLinks.js'
14
+ import { remarkPkgManager } from './code-blocks/remarkPkgManager.js'
15
+ import { remarkChoiceGroup } from './code-blocks/remarkChoiceGroup.js'
13
16
 
14
17
  const root = process.cwd()
15
18
  const prettyCode = [
@@ -21,7 +24,7 @@ const prettyCode = [
21
24
  },
22
25
  ]
23
26
  const rehypePlugins: any = [prettyCode, [rehypeMetaToProps]]
24
- const remarkPlugins = [remarkGfm, remarkDetype]
27
+ const remarkPlugins = [remarkGfm, remarkDirective, remarkDetype, remarkPkgManager, remarkChoiceGroup]
25
28
 
26
29
  const config: UserConfig = {
27
30
  root,