I'm trying to use front-matter plugin (with cooperation with my own plugin) and it seem that line mentioned below does this:
- on first page with front-matter it creates some content to the
vm.config with Docsify.util.merge
- on second page without front-matter (or with different front-matter dict content) it does another
Docsify.util.merge but
- as a result of this operation
vm.config is polluted with all the state from first page, so when something is missing in the second page front-matter it still appears as if the value is set
|
Docsify.util.merge(vm.config, attributes.config) |
I'm trying to use front-matter plugin (with cooperation with my own plugin) and it seem that line mentioned below does this:
vm.configwithDocsify.util.mergeDocsify.util.mergebutvm.configis polluted with all the state from first page, so when something is missing in the second page front-matter it still appears as if the value is setdocsify/src/plugins/front-matter/index.js
Line 7 in cc636e6