File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 6
6
import assert from 'node:assert/strict'
7
7
import fs from 'node:fs/promises'
8
8
import { fileURLToPath } from 'node:url'
9
+ import etc from '@wooorm/starry-night/etc'
9
10
import sourceGitignore from '@wooorm/starry-night/source.gitignore'
11
+ import sourceRegexpExtended from '@wooorm/starry-night/source.regexp.extended'
12
+ import sourceRegexpPosix from '@wooorm/starry-night/source.regexp.posix'
13
+ import sourceRegexp from '@wooorm/starry-night/source.regexp'
14
+ import sourceSy from '@wooorm/starry-night/source.sy'
10
15
import sourceTsx from '@wooorm/starry-night/source.tsx'
11
16
import { common } from '@wooorm/starry-night'
12
17
import remarkFrontmatter from 'remark-frontmatter'
@@ -79,7 +84,16 @@ export const article = unified()
79
84
. use ( rehypeRaw )
80
85
. use ( rehypeInferReadingTimeMeta )
81
86
. use ( rehypeStarryNight , {
82
- grammars : [ ...common , sourceGitignore , sourceTsx ] ,
87
+ grammars : [
88
+ ...common ,
89
+ etc ,
90
+ sourceGitignore ,
91
+ sourceRegexpExtended ,
92
+ sourceRegexpPosix ,
93
+ sourceRegexp ,
94
+ sourceSy ,
95
+ sourceTsx
96
+ ] ,
83
97
plainText : [ 'txt' ]
84
98
} )
85
99
. use ( rehypeTwoslash , { twoslash : { compilerOptions : commandLine . options } } )
You can’t perform that action at this time.
0 commit comments