1
0
Fork 0

fix(fs.shared): Allow per-site remark plugins

This commit is contained in:
Joost De Cock 2021-12-27 15:02:19 +01:00
parent 0d4cf95f70
commit 3b204443b0

View file

@ -1,9 +1,7 @@
import path from 'path'
import remarkGfm from 'remark-gfm'
import remarkJargon from '../../../remark-jargon/src/index.js'
import { jargon } from '@freesewing/i18n'
const config = site => ({
const config = (site, remarkPlugins=[]) => ({
experimental: {
externalDir: true,
esmExternals: true,
@ -29,7 +27,7 @@ const config = site => ({
options: {
remarkPlugins: [
remarkGfm,
[remarkJargon, { jargon } ],
...remarkPlugins,
]
}
}