File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 1313secondary:
1414 - Star on GitHub →
1515 - https://github.com/nuxtlabs/github-module
16- snippet: yarn add @nuxtlabs/github
16+ snippet: yarn add @nuxtlabs/github-module
1717---
1818
1919#title
Original file line number Diff line number Diff line change @@ -190,18 +190,7 @@ export default defineNuxtModule<ModuleOptions>({
190190 // @ts -ignore
191191 nuxt . hook ( 'content:context' , ( context ) => {
192192 context . markdown . remarkPlugins = context . markdown . remarkPlugins || { }
193- if ( Array . isArray ( context . markdown . remarkPlugins ) ) {
194- context . markdown . remarkPlugins . push ( [ 'remark-github' , { repository : `${ options . owner } /${ options . repo } ` } ] )
195- } else {
196- context . markdown . remarkPlugins [ 'remark-github' ] = { repository : `${ options . owner } /${ options . repo } ` }
197- }
198- } )
199- nuxt . hook ( 'nitro:config' , ( nitroConfig ) => {
200- // @ts -ignore
201- nitroConfig . externals . traceInclude = nitroConfig . externals . traceInclude || [ ]
202-
203- // @ts -ignore
204- nitroConfig . externals . traceInclude . push ( 'remark-github' )
193+ context . markdown . remarkPlugins [ 'remark-github' ] = { repository : `${ options . owner } /${ options . repo } ` }
205194 } )
206195 }
207196
You can’t perform that action at this time.
0 commit comments