Possible to handle protocol-less media? #132

Closed
opened 2026-01-29 14:28:18 +00:00 by claunia · 4 comments
Owner

Originally created by @sethreidnz on GitHub (Aug 15, 2017).

For example when using Contentful the media is returned as such:

//videos.contentful.com/4kxhtjjektmk/5jNKj0uP68Kw0uW0MIasOw/5628599e3424c29ba3a2ea2188d3d686/B80233.mp4

Would you accept a PR to handle this case if I can get it together? Or any thoughts on why this would be a bad idea?

Originally created by @sethreidnz on GitHub (Aug 15, 2017). For example when using Contentful the media is returned as such: ``` //videos.contentful.com/4kxhtjjektmk/5jNKj0uP68Kw0uW0MIasOw/5628599e3424c29ba3a2ea2188d3d686/B80233.mp4 ``` Would you accept a PR to handle this case if I can get it together? Or any thoughts on why this would be a bad idea?
claunia added the enhancement label 2026-01-29 14:28:18 +00:00
Author
Owner

@xoofx commented on GitHub (Aug 15, 2017):

Not sure what do you mean by handle? Typically if you use this with a image url, it works correctly as seen on babelmark

@xoofx commented on GitHub (Aug 15, 2017): Not sure what do you mean by handle? Typically if you use this with a image url, it works correctly as seen on [babelmark](https://babelmark.github.io/?text=!%5BImage%5D(%2F%2Fvideos.contentful.com%2F4kxhtjjektmk%2F5jNKj0uP68Kw0uW0MIasOw%2F5628599e3424c29ba3a2ea2188d3d686%2FB80233.mp4))
Author
Owner

@sethreidnz commented on GitHub (Aug 15, 2017):

Sorry I wasn't clear enough. When i use that example there it gets
processed as an image tag. Not handled as a video tag as it does if I
simply add http: to the begining. Does that make sense?

On 15/08/2017 5:55 PM, "Alexandre Mutel" notifications@github.com wrote:

Not sure what do you mean by handle? Typically if you use this with a
image url, it works correctly as seen on babelmark
https://babelmark.github.io/?text=!%5BImage%5D(%2F%2Fvideos.contentful.com%2F4kxhtjjektmk%2F5jNKj0uP68Kw0uW0MIasOw%2F5628599e3424c29ba3a2ea2188d3d686%2FB80233.mp4)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lunet-io/markdig/issues/135#issuecomment-322383447,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEfs8cwVDJLHihQEXLFQ1w8xKtVbMrJ-ks5sYTK6gaJpZM4O3IMj
.

@sethreidnz commented on GitHub (Aug 15, 2017): Sorry I wasn't clear enough. When i use that example there it gets processed as an image tag. Not handled as a video tag as it does if I simply add http: to the begining. Does that make sense? On 15/08/2017 5:55 PM, "Alexandre Mutel" <notifications@github.com> wrote: > Not sure what do you mean by handle? Typically if you use this with a > image url, it works correctly as seen on babelmark > <https://babelmark.github.io/?text=!%5BImage%5D(%2F%2Fvideos.contentful.com%2F4kxhtjjektmk%2F5jNKj0uP68Kw0uW0MIasOw%2F5628599e3424c29ba3a2ea2188d3d686%2FB80233.mp4)> > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/lunet-io/markdig/issues/135#issuecomment-322383447>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AEfs8cwVDJLHihQEXLFQ1w8xKtVbMrJ-ks5sYTK6gaJpZM4O3IMj> > . >
Author
Owner

@xoofx commented on GitHub (Aug 15, 2017):

Yep, sounds reasonable, PR welcome.

@xoofx commented on GitHub (Aug 15, 2017): Yep, sounds reasonable, PR welcome.
Author
Owner

@sethreidnz commented on GitHub (Aug 15, 2017):

I'll try my best this weekend when I have time 👍

@sethreidnz commented on GitHub (Aug 15, 2017): I'll try my best this weekend when I have time 👍
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#132