-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
showdown.min.js interprets underscore in http links as italic #444
Comments
Try the option literalmidwordunserscores |
As stated in the documentation... literalMidWordUnderscores: (boolean) [default false] Turning this on will stop showdown from interpreting underscores in the middle of words as |
Sorry, I forgot to mention that underscores in http links are interpreted correctly in un-minified version. I tried it in the demo page. So I guess minifying the js files somehow introduced this bug? |
As I stated in my answer, you need to use the option If you check the options in the demo page (black panel on the left), you will see that, by default, so this will work...
|
Thanks for the reply. Now I see where my confusion is. In the demo page the first two link examples are parsed as raw texts and that's why even if I turned off Sorry about the time wasted. |
Showdown is now smarter fetching links. You should be able to use |
The processed html will become something like this:
<p>http://test<em>web</em>page.html</p>
Event if
simplifiedAutoLink
is turned on.This is found in the version 1.7.5.
The text was updated successfully, but these errors were encountered: