Skip to content
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

External links cause new line insertion #929

Open
gaborbernat opened this issue Sep 7, 2024 · 2 comments
Open

External links cause new line insertion #929

gaborbernat opened this issue Sep 7, 2024 · 2 comments

Comments

@gaborbernat
Copy link

With the latest version, shields get separated on new lines:

image see at https://bernat.tech/about

This wasn't the case before. Might be related to gohugoio/hugo#11319

## Bernát Gábor (from 🇭🇺🇷🇴🇬🇧), living in Los Angeles 🇺🇸

[![Github Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&link=https://github.com/sponsors/gaborbernat&style=flat-square)](https://github.com/sponsors/gaborbernat)
[![Twitter Badge](https://img.shields.io/badge/-@gjbernat-1ca0f1?style=flat-square&labelColor=1ca0f1&logo=twitter&logoColor=white&link=https://twitter.com/gjbernat)](https://twitter.com/gjbernat)
[![PyPI](https://img.shields.io/badge/-gaborbernat-0073b7?style=flat-square&logo=Python&logoColor=white&link=https://pypi.org/user/gaborbernat/)](https://pypi.org/user/gaborbernat/)
[![Linkedin Badge](https://img.shields.io/badge/-gaborbernat-blue?style=flat-square&logo=Linkedin&logoColor=white&link=https://www.linkedin.com/in/gaborbernat/)](https://www.linkedin.com/in/gaborbernat/)
[![MAIL Badge](https://img.shields.io/badge/[email protected]?style=flat-square&logo=Gmail&logoColor=white&link=mailto:[email protected])](mailto:[email protected])
@luizdepra
Copy link
Owner

Yup. This problem looks like it is related to that Hugo's issue. You could put all shields in the same line. Dirty, but will solve the problem for the moment.

Also, there is the problem with the external link and images. Firefox finally implemented :has(), so I'm going to push a fix for that.

@jankatins
Copy link

jankatins commented Oct 5, 2024

I've just updated to latest hugo and latest hugu-coder and now also see this.

This gets turned into the below rendering:

Afterward you can
[login as described](https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-entra-vpn-client-linux#download-and-install-the-azure-vpn-client)
by importing the downloaded connection file.

image

When I disabled the following css rule (white-space: pre-wrap;) in thebrowsers inspect window, it flowed as I expected it:
image

image

That css line was added in 046c15c

(This problem including a fix in custom css was discussed in #820 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants