Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filtering out Prism for markmaps #1175

Merged
merged 1 commit into from
Aug 16, 2022
Merged

filtering out Prism for markmaps #1175

merged 1 commit into from
Aug 16, 2022

Conversation

emckean
Copy link
Collaborator

@emckean emckean commented Aug 15, 2022

following the instructions here https://markmap.js.org/demos/auto-loader.html?disable=prism
related to issue #729

@emckean
Copy link
Collaborator Author

emckean commented Aug 16, 2022

checking the network tab in the preview site shows no Prism :)

@LisaFC
Copy link
Collaborator

LisaFC commented Aug 16, 2022

Excellent, thanks!

Fixes #729

@chalin
Copy link
Collaborator

chalin commented Aug 16, 2022

Woohoo! 🎉

Comment on lines +21 to +27
autoLoader: {
manual: true,
onReady() {
const { autoLoader, builtInPlugins } = window.markmap;
autoLoader.transformPlugins = builtInPlugins.filter(plugin => plugin.name !== 'prism');
},
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'm wondering if this should have been added to https://github.com/google/docsy/blob/main/assets/js/markmap.js?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #1188 to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants