diff options
author | Erin McKean <emckean@google.com> | 2022-08-16 12:31:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-16 12:31:11 +0300 |
commit | d26d8856674fca15ee01cbccefd617ea2ee664c0 (patch) | |
tree | 11d1a0c9e3698096989c0366e6d9616f2ba2e78a | |
parent | cd2867f8c2c700ee0eb55d4ea5291637f6b36d36 (diff) |
filtering out Prism for markmaps (#1175)
following the instructions here https://markmap.js.org/demos/auto-loader.html?disable=prism
related to issue #729
-rw-r--r-- | layouts/partials/scripts.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 9345cb6..7894f86 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -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> |