Comments (4)
Maybe an easy way is to simply externalize katex
and load it from window.katex
. It doesn't matter if you don't use it anyway.
I'll provide a build without any plugins in the future.
from markmap.
The CDN path should be https://unpkg.com/[email protected]
or https://unpkg.com/[email protected]/dist/browser/index.iife.js
. The former is recommended.
I don't use this plugin but I guess var
should be markmap
.
from markmap.
Sorry I can't help with so little information.
It is more like a bundling issue rather than an issue with this library.
Feel free to open a discussion thread and provide more information there.
from markmap.
Hello, thank you for your reply.
I'm trying to externalize markmap-lib with importToCDN,
importToCDN({
modules: [
autoComplete('react'),
autoComplete('react-dom'),
{
name: "markmap-lib",
var: 'MarkmapLib',
path: 'https://unpkg.com/[email protected]/dist/index.js',
version: "0.15.8"
},
],
})
but I got error :
index.js:2 Uncaught ReferenceError: exports is not defined
at index.js:2:23
(anonymous) @ index.js:2
react-dom.production.min.js:121 ReferenceError: MarkmapLib is not defined
index.js is https://unpkg.com/[email protected]/dist/index.js
Looking forward to the arrival of the version without any plugins!
from markmap.
Related Issues (20)
- [BUG] markmap-cli doesn't work in offline mode
- Feature Request: GPT Intergration
- [Support] Could you please help to verify the Katex display in Vue? HOT 2
- Windows 10 or 11 run command "markmap -w some_markdown_file.md" occured an Error: Could not find root dir HOT 3
- [Help] SVG structure (colour rendering) not working for indented nested lists HOT 5
- [feature request] plugin for obsidian HOT 1
- [BUG] markmap --watch --offline not working HOT 9
- [Feature Request] Support bi-directional mind map HOT 3
- [BUG] Useful color map HOT 2
- [feature-request] Support editing directly in markmap? And sync between markdown and markmap HOT 1
- Feature Request : Dark Mode HOT 3
- [BUG] Update Markmap-lib 0.14 to 0.17 for an Obsidian extension HOT 2
- foldAll and fold don't work in Angular app HOT 1
- [BUG] running `markmap --watch` twice will fail
- [BUG]
- How to use Toolbar with React HOT 2
- [BUG] Not showing png in VS Code HOT 1
- [BUG] array.at function is too new, some old browser can't support it HOT 1
- [BUG] HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markmap.