如何在github markdown中显示一段纯文本? [英] How do you display a section of plain text in github markdown?

查看:916
本文介绍了如何在github markdown中显示一段纯文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难在google上找到这个(真的很简单)的问题的实际答案,我开始担心没有解决方案。

I'm having a hard time finding any real answer to this (really simple?) question on google, and I'm starting to worry that there is no solution.

我正在学习github降价。我想展示一些包含假电子邮件地址(如user@example.com)的示例代码。但github坚持自动链接这个文本。我还有一大块文本有许多特殊字符。

I am learning github markdown. I would like to show some example code that contains fake email address like user@example.com. But github insists on auto-linking this text. I also have a large chunk of text that has many special characters.

有没有办法转义块或区段,以便不处理特殊字符,链接生成?

Is there a way to escape blocks or sections so that no special characters are processed, and no auto-links are generated?

推荐答案

您可以将这样的文本包装在pre标签中。

You can wrap such text in pre tags.

<pre>Text I want left alone@donotlink.me</pre>

我刚刚在github上测试了这个。

I just tested this out on github.

这篇关于如何在github markdown中显示一段纯文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆