Skip to content

Make front-matter plugin not polluting vm.config #548

Description

@petrjoachim

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions