You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I'd like to implement the update but I'm not sure of the way of doing it. There are 2 things coming to my mind:
remember previous state of vm.config and then make new one (in the second run) from the previous pinned version merged with new attributes.config
move front-matter somewhere else like:
vm.config.front-matter
vm.front-matter
or similar
Which one is preferable here? ?I'd go for the second one since this plugin is not mentioned in docs so there is chance no one is actually depending on it.
I'm trying to use front-matter plugin (with cooperation with my own plugin) and it seem that line mentioned below does this:
vm.config
withDocsify.util.merge
Docsify.util.merge
butvm.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 setdocsify/src/plugins/front-matter/index.js
Line 7 in cc636e6
The text was updated successfully, but these errors were encountered: