如何解决如何在Markdown中模仿<nobr>标签?
我的降价代码中有很多链接,这些链接通常位于句子的结尾。
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}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。