Replies: 3 comments
-
In some markdown dialects, this works
but not in GitHub Flavoured Markdown. GitHub treats the linebreaks as whitespace. I am not aware of a way to split A URL across multiple lines in GitHub Flavoured Markdown. |
Beta Was this translation helpful? Give feedback.
-
I don't feel like I can answer authoritatively and unequivocally given the wide breadth of markdown flavors and support across different platforms, but I'd say no, I don't believe you can insert newline characters within markdown links without actually breaking the url (happy to be shown otherwise though, as I agree they'd be helpful!) In the case of a url that has a custom logo, my suggestion would be to shift the parts that a human might want to review in a diff to the first part of the url (basically, put the logo last since that's something no human can diff anyway) |
Beta Was this translation helpful? Give feedback.
-
Criss-crossing answers from Chris and I there 😄 , but (a) good to know there's some dialects/favors that are linebreak friendly and (b) that GitHub indeed doesn't support it and that's why I wasn't able to get it to work 👍 |
Beta Was this translation helpful? Give feedback.
-
This may be a rather unusual question and isn't quite about shields itself, but I hope to receive an answer either way.
So... I currently use a dynamic badge URL with a custom, base64 encoded SVG image. Given these points, the URL becomes quite long and hard to read when viewing it in the Raw markdown file.
As an example, this is one of the URLs I currently use in the README.md file using a reference link:
My question now is, if there is some way in markdown to format this URL a bit more nicely to make it easier to at least see the different query parameters used.
Like to give a clear example, I ask if I can have the URL formatted like this while still having it work:
If there is no such way, then that's fine.
Beta Was this translation helpful? Give feedback.
All reactions