Spaces cannot in image address #566

Closed
opened 2026-01-29 14:39:50 +00:00 by claunia · 2 comments
Owner

Originally created by @zxyao145 on GitHub (Sep 26, 2022).

Hi, I am trying to use markdig and find that if there has any space in the address of the image, markdig will not recognize them properly:

![](.assets/page 1.drawio.png)

If I replace the space with %20, markdig can do the work well:

![](.assets/page%201.drawio.png)
Originally created by @zxyao145 on GitHub (Sep 26, 2022). Hi, I am trying to use markdig and find that if there has any space in the address of the image, markdig will not recognize them properly: ``` ![](.assets/page 1.drawio.png) ``` If I replace the space with `%20`, markdig can do the work well: ``` ![](.assets/page%201.drawio.png) ```
claunia added the invalid label 2026-01-29 14:39:50 +00:00
Author
Owner

@xoofx commented on GitHub (Sep 26, 2022):

Yes, this is expected by the specs here. See also there others CommonMark engine behaving the same

does not include ASCII control characters or space character

@xoofx commented on GitHub (Sep 26, 2022): Yes, this is expected by the [specs here](https://spec.commonmark.org/0.30/#links). See also there others CommonMark engine behaving the [same](https://babelmark.github.io/?text=!%5B%5D(.assets%2Fpage+1.drawio.png)) > does not include [ASCII control characters](https://spec.commonmark.org/0.30/#ascii-control-character) or [space](https://spec.commonmark.org/0.30/#space) character
Author
Owner

@zxyao145 commented on GitHub (Sep 26, 2022):

Yes, this is expected by the specs here. See also there others CommonMark engine behaving the same

does not include ASCII control characters or space character

OK, Thank you for your reply!

@zxyao145 commented on GitHub (Sep 26, 2022): > Yes, this is expected by the [specs here](https://spec.commonmark.org/0.30/#links). See also there others CommonMark engine behaving the [same](https://babelmark.github.io/?text=!%5B%5D(.assets%2Fpage+1.drawio.png)) > > > does not include [ASCII control characters](https://spec.commonmark.org/0.30/#ascii-control-character) or [space](https://spec.commonmark.org/0.30/#space) character OK, Thank you for your reply!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#566