In the following config, the defaults level and collisionSuffix are not parsed to the plugin in current behavior.
markdown:
anchors:
permalink: true
This PR ensure defaults are handled correctly, so that level and collisionSuffix are retained.
also fixed an issue where duplicate titles are not handled correctly, should be Object.prototype.hasOwnProperty(), not Object.prototype.isPrototypeOf()
noticed
Object.assign()
doesn't do deep cloning,In the following config, the defaults
level
andcollisionSuffix
are not parsed to the plugin in current behavior.This PR ensure defaults are handled correctly, so that
level
andcollisionSuffix
are retained.also fixed an issue where duplicate titles are not handled correctly, should be
Object.prototype.hasOwnProperty()
, notObject.prototype.isPrototypeOf()