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

markdown image syntax and url #11

Open
jackusay opened this issue Mar 31, 2023 · 7 comments
Open

markdown image syntax and url #11

jackusay opened this issue Mar 31, 2023 · 7 comments

Comments

@jackusay
Copy link
Owner

jackusay commented Mar 31, 2023

some url, what should I do? I mean, should I parse this url, or just let it go?
Is it real useful format?

#online image, no work
![alt text](https://example.com/img)
![alt text](http://example.com/img.jpg)

#local image, ok
![alt text](a.jpg "title a1") #relative path
![alt text](abc/a.jpg "title a1") #relative path
![alt text](C:\aa bb\2023-12-30.png "title a1") #absolute path
![alt text](中/a c 文.jpg "title a1") #non ascii 

#???
![alt text](file:///C:\Current Work\Service\12-30-34.png)
  wrong: file:///
![alt text](//aa/bb/12-30-34.png)
  wrong: //
![alt text](abc/a b.jpg =205x251)
  wrong: =205x251
  https://gitlab.com/gitlab-org/gitlab-foss/-/issues/58426
![smiley](smiley.png){:height="36px" width="36px"}.
  https://linuxpip.org/markdown-change-image-size/
@jackusay
Copy link
Owner Author

jackusay commented Mar 31, 2023

where is this file:/// come from? @MiroslavMatas

ref #7

@MiroslavMatas
Copy link

where is this file:/// com from? @MiroslavMatas

ref #7

image

@veksha
Copy link

veksha commented Mar 31, 2023

@jackusay
Copy link
Owner Author

jackusay commented Mar 31, 2023

@MiroslavMatas Why are you not use C:\Users\user\Downloads\app note\... directly?

And it can be file:/// and file://, right?

Personally, I only use relative path.

@MiroslavMatas
Copy link

new/clean CudaText + add Markdown Preview + Editing plugins
markdown preview not works (for me) - on C:\Windows\System32\SecurityAndMaintenance.png
but it is ok for file://C:\Windows\System32\SecurityAndMaintenance.png
so this is the reason for my usage of file://drive:/path/name…
(you are correct - both are ok file:/// and file://)

@veksha
Copy link

veksha commented Mar 31, 2023

on Windows it should be 3 slashes for local file:
https://en.wikipedia.org/wiki/File_URI_scheme

image

examples for Unix-like:

file://localhost/etc/fstab
file:///etc/fstab

@jackusay jackusay pinned this issue Mar 31, 2023
@jackusay
Copy link
Owner Author

jackusay commented Mar 31, 2023

latest version v1.2.0 can read the file:///

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

No branches or pull requests

3 participants