markdown-it / markdown-it-emoji

Emoji syntax plugin for markdown-it markdown parser

Home Page:https://markdown-it.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linkify + :x: in URL fails

cunisia opened this issue Β· comments

Hello there,

First of al, thanks you very much for taking care of this library, it's very useful πŸ˜ƒ

When rendering a Sharepoint URL such as: https://morningtrans.sharepoint.com/:x:/r/quality/Shared%20Documents/...?d=w119ebfd3d2ee4dea8d7f047b6db59315&csf=1&e=GZRLy

Mardown-it outputs:
https://morningtrans.sharepoint.com/ ❌/r/quality/Shared%20Documents/...?d=w119ebfd3d2ee4dea8d7f047b6db59315&csf=1&e=GZRLy

Therefore the URL is broken.

live demo

I don't know what version you use, but latest one has no problem about this emoji.

What about /...? sequence - this should be repored to linkify-it tracker, to discuss how often this can happen. As quick-fix, i'd suggest use < > for all miss-linkified texts.