Open leeoniya opened 7 years ago
a tricky part of this is that there are a bunch of conditional extends based on the passed options that would need to be reworked: https://github.com/leeoniya/reMarked.js/blob/master/reMarked.js#L595-L601
i don't have a clear idea of how to do that cleanly besides using composition rather than es6 classes and rather than calling super()
, just calling the predefined parent's function in the context of the derived instances.
would be good to refactor reMarked to ween it off
klass
and use ES6 classes with an ES5 transpiler. would also allow it to run inuse strict
mode, which is currently not possible since klass relies onarguments.callee