File link not working #123

Closed
opened 2026-01-29 14:27:53 +00:00 by claunia · 1 comment
Owner

Originally created by @sibille on GitHub (Jul 10, 2017).

We are generating as part of our extension (Windows Template Studio) a markdown file that's opened in Visual Studio with the markdown editor. This file includes links to files on the disk. Links with white spaces are not shown correctly, and an investigation of the markdown editor team brought up an issue with markdig.

Replay

  1. insert [file1](C:/Users/John/Documents/Visual%20Studio%202017/Projects/BUPT-Projects/LICENSE)
  2. insert [file2](LICENSE)

Go deeper

I've checked the generated links of both:

file1: about:/C:/Users/John/Documents/Visual%20Studio%202017/Projects/BUPT-Projects/LICENSE
file2: about:/C:/Users/John/Documents/Visual%2520Studio%25202017/Projects/BUPT-Projects/LICENSE

I suppose that markdig encode the % character into %25...

Can you help us with this?

The issue from Markdown editor is the madskristensen/MarkdownEditor#118

Originally created by @sibille on GitHub (Jul 10, 2017). We are generating as part of our extension (Windows Template Studio) a markdown file that's opened in Visual Studio with the markdown editor. This file includes links to files on the disk. Links with white spaces are not shown correctly, and an investigation of the markdown editor team brought up an issue with markdig. ### Replay 1. insert `[file1](C:/Users/John/Documents/Visual%20Studio%202017/Projects/BUPT-Projects/LICENSE)` 2. insert `[file2](LICENSE)` ### Go deeper I've checked the generated links of both: `file1: about:/C:/Users/John/Documents/Visual%20Studio%202017/Projects/BUPT-Projects/LICENSE ` `file2: about:/C:/Users/John/Documents/Visual%2520Studio%25202017/Projects/BUPT-Projects/LICENSE` I suppose that markdig encode the % character into %25... Can you help us with this? The issue from Markdown editor is the madskristensen/MarkdownEditor#118
Author
Owner

@xoofx commented on GitHub (Jul 10, 2017):

From this test on babelmark it seems that markdig correctly generates this...

@xoofx commented on GitHub (Jul 10, 2017): From this [test on babelmark](https://babelmark.github.io/?text=%5Bfile1%5D(C%3A%2FUsers%2FJohn%2FDocuments%2FVisual%2520Studio%25202017%2FProjects%2FBUPT-Projects%2FLICENSE)) it seems that markdig correctly generates this...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#123