File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const nextConfig = (phase) => {
26
26
})*/
27
27
28
28
// https://rehype-pretty-code.netlify.app/
29
+ /** @type {import('rehype-pretty-code').Options } */
29
30
const rehypePrettyCodeOptions = {
30
31
// VSCode "SynthWave '84" theme
31
32
theme : 'synthwave-84' ,
@@ -44,6 +45,7 @@ const nextConfig = (phase) => {
44
45
}
45
46
46
47
// https://github.com/chrisweb/remark-table-of-contents#options
48
+ /** @type {import('remark-table-of-contents').IRemarkTableOfContentsOptions } */
47
49
const remarkTableOfContentsOptions = {
48
50
containerAttributes : {
49
51
id : 'articleToc' ,
@@ -73,11 +75,13 @@ const nextConfig = (phase) => {
73
75
}
74
76
75
77
// https://github.com/remarkjs/remark-gfm
78
+ /** @type {import('remark-gfm').Options } */
76
79
const remarkGfmOptions = {
77
80
singleTilde : false ,
78
81
}
79
82
80
83
// https://github.com/chrisweb/rehype-github-alerts
84
+ /** @type {import('rehype-github-alerts').DefaultBuildType } */
81
85
const myGithubAlertBuild = ( alertOptions , originalChildren ) => {
82
86
83
87
const alert = {
@@ -135,6 +139,7 @@ const nextConfig = (phase) => {
135
139
136
140
}
137
141
142
+ /** @type {import('rehype-github-alerts').IOptions } */
138
143
const rehypeGithubAlertsOptions = {
139
144
supportLegacy : false ,
140
145
build : myGithubAlertBuild ,
You can’t perform that action at this time.
0 commit comments