For context: I am working on an approach for implementing the invalid reference link callback that would work via an option to LinkRule, so I want to replace the vanilla LinkRule with one that has the callback as a field. Right now, if I enable! it, the original LinkRule still exists and takes precedence, if I understand correctly what is going on.
The
enable!
/disable!
functions seem to duplicate the rules. I presume this is not intended?If you
disable!
a rule, it does remove it, but it seems to duplicate every other rule:Similarly,
enable!
-ing a rule that is already enabled, will duplicate it in the list, rather than overriding it:For context: I am working on an approach for implementing the invalid reference link callback that would work via an option to
LinkRule
, so I want to replace the vanillaLinkRule
with one that has the callback as a field. Right now, if Ienable!
it, the originalLinkRule
still exists and takes precedence, if I understand correctly what is going on.