Comments (9)
It looks like a network issue. The offline mode works by downloading all assets in advance.
Can you access the assets directly?
https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/index.min.js
from markmap.
Looks like so. But does that even make sense? Its literally like an offline mode that doesn't work offline. It also doesn't look like it works offline even with an active connection. It doesn't seem like it caches the assets locally to have it really work offline?
from markmap.
The offline mode works by downloading the assets in advance during installation. The installation still requires a network. Now the issue is that installation failed due to a network problem.
BTW does any CDN that serves npm package files work for you? I can tell that both jsdelivr and unpkg do not.
from markmap.
So I'm behind a corp. firewall. It is usually fine with npm
but I can't tell for anything beyond that. So what you're saying is, if e.g. I have a non restricted connection the -offline
switch would download the assets and it should work from then on, or I have to do a whole reinstallation of markmap
with a non restricted connection?
from markmap.
@gera2ld So I tried both. It looks like it tries to download the assets again everytime your run it, no matter if it ran sucessfully before. Outside the corp. network, I can run with -offline
just fine. I also reinstalled v0.16.1
outside the corp. network. As soon as I reconnect to the corp. network it stops working.
from markmap.
Seems something is wrong with paths after installation. Let me fix it.
Fixed in 0.16.2
from markmap.
@gera2ld Can confirm it's working now. Thanks. 👍
from markmap.
@gera2ld Is it intended that this now also works with just -watch
? If there is handling that automatically falls back to the locally cached assets I guess you could drop --offline
alltogether?
from markmap.
--offline
means the generated HTML file can be loaded offline, i.e. all static assets are inlined.
If all the assets are downloaded successfully on installation, you don't need a network to use it, no matter if --watch
is set.
An exception is that Katex requires font files that must be downloaded from the CDN.
from markmap.
Related Issues (20)
- Connect any two nodes HOT 3
- [BUG]
- [BUG]
- [BUG]
- - [x] I have searched for existing issues that already reported this problem and found none
- [BUG] Wrong identifier name with strict esm HOT 6
- Can Someone Help Me Figure Out What's Wrong with This Formula HOT 1
- [Question]Great author, there's another small issue I need help with
- [BUG] markmap-cli doesn't work in offline mode
- Feature Request: GPT Intergration
- I don't use latex, can I remove it? HOT 4
- [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
- [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
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.