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 66import assert from 'node:assert/strict'
77import fs from 'node:fs/promises'
88import { fileURLToPath } from 'node:url'
9+ import etc from '@wooorm/starry-night/etc'
910import 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'
1015import sourceTsx from '@wooorm/starry-night/source.tsx'
1116import { common } from '@wooorm/starry-night'
1217import remarkFrontmatter from 'remark-frontmatter'
@@ -79,7 +84,16 @@ export const article = unified()
7984 . use ( rehypeRaw )
8085 . use ( rehypeInferReadingTimeMeta )
8186 . 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+ ] ,
8397 plainText : [ 'txt' ]
8498 } )
8599 . use ( rehypeTwoslash , { twoslash : { compilerOptions : commandLine . options } } )
You can’t perform that action at this time.
0 commit comments