diff --git a/layers/core/app/modules/content/source.mjs b/layers/core/app/modules/content/source.mjs index 9f48632..6515e7b 100644 --- a/layers/core/app/modules/content/source.mjs +++ b/layers/core/app/modules/content/source.mjs @@ -27,6 +27,9 @@ export default (opts) => { if (opts.docsConfig.automd) { if (key.endsWith('.md') && typeof val === 'string') { const res = await transform(val, opts.docsConfig.automd) + if (res.hasChanged) { + _fs.setItem(key, res.contents).catch(console.error) + } return res.contents } else if (key.endsWith('.md$')) { return { mtime: new Date() }