Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很难在谷歌上找到这个(真的很简单?)问题的真正答案,我开始担心没有解决方案。
我正在学习 github markdown。我想展示一些包含假电子邮件地址的示例代码,例如 user@example.com。但 github 坚持自动链接此文本。我还有一大块包含许多特殊字符的文本。
有没有办法转义块或部分,以便不处理特殊字符,并且不生成自动链接?
用反引号包裹块:
```text code(); address@domain.com ```
您可以将此类文本包装在 pre 标签中。
<pre>Text I want left alone@donotlink.me</pre>
我刚刚在github上测试了这个。
这都是kramdown语法的一部分。最后一个链接显示了每个 GitHub 降价技巧。
所以这也可以:
~~~text code(); address@domain.com ~~~