Closed saurabhLearns closed 1 year ago
Hey @saurabhLearns, so Autolinker doesn't support markdown format. You should compile your markdown into HTML first before sending it to Autolinker (in which Autolinker does support HTML).
That being said, the behavior is expected. ]
and (
characters are acceptable in the "path" section of a URL (the section after a /
char), whereas they are not acceptable in the "domain" (host) section. This is why when you have a path (the example.com/...
url), the ](
chars are included. But when you don't have a path (the linkedin URL), the ](
characters are excluded.
Bottom line: compile markdown -> HTML first :)
Hey,
I've been messing with autolinker and found this strange behavior (not sure if this is expected or not, but looks like a bug in first place)
Adding a small snippet which is already tried and tested on runkit as well.
Expected Output
Actual Output
Snippet from runkit: