Skip to content

Commit

Permalink
filtering out Prism for markmaps (#1175)
Browse files Browse the repository at this point in the history
following the instructions here https://markmap.js.org/demos/auto-loader.html?disable=prism
related to issue #729
  • Loading branch information
emckean committed Aug 16, 2022
1 parent cd2867f commit d26d885
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
</style>
<script>
window.markmap = {
autoLoader: { manual: true },
autoLoader: {
manual: true,
onReady() {
const { autoLoader, builtInPlugins } = window.markmap;
autoLoader.transformPlugins = builtInPlugins.filter(plugin => plugin.name !== 'prism');
},
},
};
</script>
<script src="https://cdn.jsdelivr.net/npm/markmap-autoloader"></script>
Expand Down

0 comments on commit d26d885

Please sign in to comment.