Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const toc = require('remark-toc');
module.exports = {
activate() {
const {MDEPreview} = inkdrop.components.classes;
if (MDEPreview) {
MDEPreview.remarkPlugins.push(toc);
}
},
deactivate () {
const { MDEPreview } = inkdrop.components.classes
if (MDEPreview) {
MDEPreview.remarkPlugins = MDEPreview.remarkPlugins.filter(function (plugin) {
return plugin !== toc;
})
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.