问题描述
Long long sentence with the link at the [end](https://somepage123.com).
有时点换行会换成新行-看起来很糟糕(screenshot)。
在HTML中,我可以将链接和点包装在<nobr>
标记中,以使其正确地保持在一起。但我使用的是Hugo框架,该框架不支持markdown文件中的原始html。所以我不能只是这样做:
Long long sentence with the link at the <nobr>[end](https://somepage123.com).</nobr>
我还尝试使用Unicode字符,例如零宽度无中断空格或 WORD JOINER 。连接单词+单词很好用,但是对于大小写标签+单词则没用。
Long long sentence with the link at the [end](https://somepage123.com)⁠.
当然,我可以在链接标记内移动点,但是此选项看起来很草率,并且违反了排版规则。
Long long sentence with the link at the [end.](https://somepage123.com)
Мaybe我还有其他选择吗?预先感谢。
解决方法
您应该使用CSS而不是html-tag。
.example-link {空白:nowrap}