Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErin McKean <emckean@google.com>2022-08-16 12:31:11 +0300
committerGitHub <noreply@github.com>2022-08-16 12:31:11 +0300
commitd26d8856674fca15ee01cbccefd617ea2ee664c0 (patch)
tree11d1a0c9e3698096989c0366e6d9616f2ba2e78a
parentcd2867f8c2c700ee0eb55d4ea5291637f6b36d36 (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.html8
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>