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 link is not recognised where there is a space in the link #142

Open
kuremon opened this issue Sep 14, 2024 · 5 comments
Open

Markdown link is not recognised where there is a space in the link #142

kuremon opened this issue Sep 14, 2024 · 5 comments

Comments

@kuremon
Copy link

kuremon commented Sep 14, 2024

For example if have a Markdown document with a reference to another Markdown document [Open other document](/Users/home/Desktop/My other document.md), QLMarkdown will not preview it as a link.

@setanarut
Copy link
Contributor

setanarut commented Sep 14, 2024

For example if have a Markdown document with a reference to another Markdown document [Open other document](/Users/home/Desktop/My other document.md), QLMarkdown will not preview it as a link.

Wrap with < > or use %20.

[Open other document](</Users/home/Desktop/My other document.md>)

[Open other document](/Users/home/Desktop/My%20other%20document.md)

@kuremon
Copy link
Author

kuremon commented Sep 15, 2024

Thanks. That's a good fix. But the thing is most workflows might create a space in the pathname (Copy as path in Mac, Hookmark, dropping a file, etc). Moreover the general Markdown syntax is compatible with a space in the pathname.

@setanarut
Copy link
Contributor

setanarut commented Sep 15, 2024

Moreover the general Markdown syntax is compatible with a space in the pathname.

Two question

  1. Which Markdown (CommonMark, GFM etc)?
  2. Can you give me the address of the Markdown spec page so I can look at it?

@setanarut
Copy link
Contributor

@kuremon I tried here and it does not support this syntax. https://spec.commonmark.org/dingus/

@kuremon
Copy link
Author

kuremon commented Sep 16, 2024

@setanarut OK my bad I meant it is the default behaviour when using softwares like Typora, Macdown, Mark Text.

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

No branches or pull requests

2 participants