-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Markdown for url without hyperlink #9566
Comments
Hey @wmthor 👋 I'm interested to hear the use case for displaying a full URL that isn't hyperlinked. The only way to avoid full URLs (eg, URLs starting with http:// or https://) being converted to hyperlinks in the markdown editor is to not start them with http(s):// or to wrap them in HTML, eg: example.com won't be linked because it's not a URL
<div style="display: inline">http://example.com</div> won't be linked because it's inside HTML I'm going to close this issue because it's the expected behaviour and would be a breaking change if the behaviour was modified. Our new rich-text Koenig editor is currently in development, that won't automatically link URLs because it makes linking text easier than it is in markdown. |
Hi, @kevinansfield. Thanks for the response. The div solution works. I understand that changing it drastically would break a lot of things and not worth implementing for such a specific use case. I found that inline code worked as another workaround. Thanks. |
I had the same problem, after much research I was able to solve using the following method. |
@kevinansfield I suggest re-opening the issue. |
@lazarevzubov it looks like you're on an old version of Ghost or you have something else in your environment that is auto-linking the URL. Testing this in Ghost 2.x the URL is not auto linked when using a code card, or inside a code block when using a markdown card |
@kevinansfield Thanks for your reply! |
Hey guys! 👋 |
There doesn't seem to be any real fix for it, and the only way is a workaround. For your case, the simplest workaround might be to use |
This is starting to sound like it's a completely different issue and I'm not able to reproduce at all. Could someone experiencing problems please open a new issue and include full details of what's happening? A screencast would be most useful because the descriptions of the issue so far are difficult to follow. Thanks! |
Hello, I do not know if it will be the problem of all, my bog also generated the automatic links, after a while I discovered that was related to the comments of Disqus, I even make a post with Pt-Br about the solution here. https://www.insideblock.com/blog/desativar-links-automaticos-do-markdown-com-jekyll.html |
It is a problem! I have to describe a configfile, and simple values like camel.springboot.name gets formatted like a link. Very frustrating. It is inside a table using | | | |
I am having the same problem when trying to put a URL into a fenced code block. It is automatically turned into a link. HTML isn't any good here. There must be a solution. |
There is. Use & # 46 ; (without the spaces) to represent "." character. |
To answer the question on the use case, it's for documentation purposes - for example, on our API i want to instruct people to insert certain information into the URL. e.g. I don't want them to be able to click that because it won't work. they have to remove {dealerid} and replace it with the uuid our API provides them. |
Here's a use case: About.com is a defunct website, so on https://mdcramer.github.io/rank-dynamics/welcome/ I'd prefer that it not automatically hyperlink and send a click to some random website. I tried using the &-solution above, but it's still linking. (Oddly, it doesn't get auto-linked when I put the markdown into https://stackedit.io.) Following advice from https://stackoverflow.com/a/25707855/852795, I used "About.com" and that did the trick! That being said, it would be nice to have an easy way to prevent markdown from automatically creating hyperlinks where they are not wanted. |
It gets parsed as a link as if you just used a period. |
Is there a way to add urls in the markdown editor without the automatically generated hyperlink? I was surprised to find out that urls were automatically converted to hyperlinks and can't find a way to remove them except for this hack that sort of solves it.
[http://www.url-here-instead.com]()
I would think there needs to be a way to remove the automatically generated hyperlinks, or have it documented if there is. Or perhaps another solution would be to remove the automatically generated hyperlink, as if an author wanted the link they would explicitly specify it with the markdown.
The text was updated successfully, but these errors were encountered: