Comments (11)
This is a browser/Electron limitation, as local files are not allowed to load other local files, but I'll see if there's a way around it using custom protocols, ideally in a secure way.
from vieb.
I think this just affects images right? Or is there another resource this applies to that I'm not considering? I have a working prototype for images now, but not sure if this is all there is to it. I don't think markdown has video support, right?
from vieb.
From what I dug into, I do not think so:
- stackoverflow shows a workaround for youtube
- I tested with a video in my markdown and the output rendered via { firefox + Markdown Viewer Webext } did not display any video
I would tend to consider that markdown does not have video support
from vieb.
Great, that makes things easy for once, I'll have this implemented in V11 (hope to release in a few weeks).
from vieb.
Thank you for your time and energy always! 😃
from vieb.
Implemented in 11.0.0 🎉
from vieb.
Hello,
Oddly enough when I'm trying today I don't see the image getting displayed.
Given that:
- I render
some/path/markdown.md
- There is an image at
some/path/media/image.png
- the markdown file refers to the image via
![](media/image.png)
- Vieb generates the following HTML:
<img src="media/image.png" alt="">
when previewing the markdown
Developer Tools indicates the following:
While firefox finds and displays the image correctly.
from vieb.
Which Vieb version are you using? This is only been fixed in 11.0.0, where I just tried your example with a random image and it works. Are you sure the image exists and you are using 11.0.0? Because I can only reproduce this behavior in older versions of Vieb. Even if the image is missing, it should generate something like this in the HTML:
Instead of using the image directly from disk, as that is not allowed. I'm testing it in the repo with this code:
![](app/img/cheatsheet.png)
and it works in 11.0.0 for me. Can you show me the file, file structure, Vieb version and the Elements tab of the devtools using some screenshots?
from vieb.
Hello,
I'm using 11.0.0
and have created a repro where I detailed how to reproduce the behavior I'm witnessing.
It's here
from vieb.
Since that very same repo works for me, it might be a Windows only issue, given that paths are fairly different/bad there, so I will look into this when I am back at a Windows machine again.
from vieb.
@Melandel I have had the opportunity to work on Windows a short time ago and have made sure both the markdownviewer and filebrowser now work at least when running from source, could you check if the new 12.0.0 release fixes your issue?
from vieb.
Related Issues (20)
- [Enhancement] Rebase using Ungoogled-Chromium and Thorium's performance patches HOT 1
- Youtube player performance degradation HOT 24
- Enough State Export+Import to Build Live Sync HOT 8
- Android Port HOT 2
- Proposal for design of CLI HOT 4
- Issue trying to load Mozilla Hubs HOT 1
- [Windows-only] Vieb does not fully quit on Windows because deleting files freezes the entire app HOT 14
- Nextjs onClick won't work HOT 2
- [toc] when showing the toc for the first time, show it expanded instead of collapsed HOT 7
- :set mouse= does not change it's value HOT 3
- Support for NT 6.1 HOT 3
- Add the ability to group tabs by tagging them HOT 1
- Not working on raspberry pi HOT 1
- Add a setting to customize the `action.editWithVim` filename
- libuuid error on opensuse tumbleweed HOT 1
- userstyle not applying to local files HOT 1
- Double quotes are escaped and included in string HOT 2
- Command history like in vim HOT 3
- Vieb 12.0.0 adblocker prevents some sites from loading HOT 1
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 vieb.