-
Notifications
You must be signed in to change notification settings - Fork 80
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
Markdown-it parser not showing images in preview #77
Comments
And in case you are talking only about remote images... I don't think they ever where supported in markdown-it. I wrote a special in-memory-downloader for external images back then for the internal markdown2html process of QON. |
Just a note for anyone else searching for " Qownnotes doesn't display images when using markdown-it": it can be fixed by adding file:// in front, even though it's a relative path, ie: I installed a bunch of scripts when I first installed QownNotes, without knowing the consequences. (Here, spending about an hour trying to figure out why I can't see images, no matter what.) Since everything puts out the other type of link, I'm probably just going to disable the script, unless this behavior isn't by design and it's actually a bug. |
@cinereous, thank you. Is there anything you want to share as a pull request for the markdown-it script? |
No, I've just gone and left it disabled; hopefully if it's not something actually needed. I just installed a bunch of scripts when I installed Qownnotes, thinking they'd be needed for functionality (like, the markdown-it seemed more advanced?), but a lot of this just seems my unfamiliarity with the program. For example, I also installed the 'insert TOC', since I really like having one, but there's an automatic (and updated) navigation on the side built-in, which makes the script seem somewhat unnecessary. Using the web extension works brilliantly and captures images perfectly, when one doesn't unnecessarily install scripts that trash displaying the images in preview! :) |
Many scripts are for and by people that want to tinker with the behavior of stuff. The image preview of the html generated by the markdown-it script only works with the "legacy image links" any more. That's why I asked if anyone wants to fix that (since the author/s of the script didn't). 😁 |
@milan-rusev, @bessw, does't anyone care to take a look at that? 😉 |
Hello, just tried the Markdown-it script and the preview doesn't show the images
anymore.
Expected behaviour
Markdown-it parser shows images as the default parser
Actual behaviour
Default parser shows images in preview, Markdown-it does not.
The HTML Export shows the image.
Steps to reproduce
Create note with
![Bild](https://www.servernoobs.com/wp-content/uploads/2012/01/Linux-3.jpg)
and activate/deactivate Markdown-it script
Output from the debug section in the settings dialog
Version**:
20.2.11
Build date:
Feb 26 2020
Build number:
5419
Platform:
windows
Operating System:
Windows 10 (10.0)
Build architecture:
i386
Current architecture:
x86_64
Release:
AppVeyor
Qt Version (build):
5.13.2
Qt Version (runtime):
5.13.2
Portable mode:
no
Settings path / key:
\HKEY_CURRENT_USER\Software\PBE\QOwnNotes
Application database path:
C:\Users\Normal\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite
Application arguments:
C:\Users\Normal\Desktop\QownNotes\QOwnNotes.exe
Qt Debug:
0
Locale (system):
de_DE
Locale (interface): empty
Primary screen resolution:
1920x1080
Icon theme:
breeze-dark-qownnotes
Notes in current note folder:
26
Calendar items:
0
Enabled scripts:
2
Enabled scripts
Script
Merge selected notes
id:
1
path:
C:\Users\Normal\AppData\Roaming\PBE\QOwnNotes\scripts\merge-notes\merge-notes.qml
variablesJson:
identifier:
merge-notes
version:
0.0.3
minAppVersion:
17.08.5
Script
Markdown-it markdown parser
id:
3
path:
C:\Users\Normal\AppData\Roaming\PBE\QOwnNotes\scripts\markdown-it\markdown-it.qml
variablesJson:
identifier:
markdown-it
version:
1.3
minAppVersion:
17.08.2
Relevant log output in the Log panel
nothing special
The text was updated successfully, but these errors were encountered: