Closed pranavbadami closed 3 years ago
Same here, managed to track it down to an TypeError: URL is not a constructor
error in the isURL
helper. In a node console it is working fine, in the browser, it seems to be falling back to the builtin URL
function. Feels like a naming clash.
@krisztian-fl Hi, just to clarify, you use slackify-markdown in the browser, right? Never tried it in the browser by myself.
@krisztian-fl Hi, just to clarify, you use slackify-markdown in the browser, right? Never tried it in the browser by myself.
@jsarafajr yep, it's being used in frontend code. I'm gonna try aliasing that import and get back to you with the results.
@jsarafajr Here's a rather simple fix, using the builtin URL class: https://github.com/jsarafajr/slackify-markdown/pull/24
@krisztian-fl thanks, published a new version with the fix.
Hey, great stuff on this library! One issue I'm having is that I can't get links to work properly. For example, when I try the library with the example from the README, here's what I see in my console: Example:
Output:
I'd expect the last line of the output text to read:
<https://example.com|here is an example>
. Any pointers on solving this?Here's my version info if it's helpful:
Thanks in advance for any help!