This repository was archived by the owner on Nov 3, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
docs/src/pages/api-reference/options
packages/gatsby-mdx/utils Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ module.exports = {
22
22
) ,
23
23
remarkPlugins : [ require ( "remark-toc" ) ] ,
24
24
gatsbyRemarkPlugins : [
25
- { resolve : ` gatsby-remark-katex` } ,
25
+ " gatsby-remark-katex" ,
26
26
{
27
27
resolve : "gatsby-remark-images" ,
28
28
options : {
29
29
maxWidth : 1035 ,
30
30
sizeByPixelDensity : true
31
31
}
32
32
} ,
33
- { resolve : "gatsby-remark-autolink-headers" } ,
34
- { resolve : "gatsby-remark-prismjs" , options : { } }
33
+ "gatsby-remark-autolink-headers" ,
34
+ "gatsby-remark-prismjs"
35
35
]
36
36
}
37
37
} ,
Original file line number Diff line number Diff line change @@ -33,12 +33,3 @@ gatsbyRemarkPlugins: [
33
33
}
34
34
];
35
35
```
36
-
37
- # Not
38
-
39
- Using a string reference is currently not supported for ` gatsbyRemarkPlugins ` . (A PR would be accepted for this).
40
-
41
- ``` js
42
- gatsbyRemarkPlugins: [
43
- ` gatsby-remark-images` ,
44
- ];
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ module.exports = async function getSourcePluginsAsRemarkPlugins({
41
41
42
42
// return list of remarkPlugins
43
43
const userPlugins = gatsbyRemarkPlugins
44
+ . map ( plugin => ( _ . isString ( plugin ) ? { resolve : plugin } : plugin ) )
44
45
. filter ( plugin => {
45
46
if ( _ . isFunction ( require ( plugin . resolve ) ) ) {
46
47
return true ;
You can’t perform that action at this time.
0 commit comments