reStructuredText中一个字粗体的一部分 [英] Part of a word bold in reStructuredText

查看:128
本文介绍了reStructuredText中一个字粗体的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



下面是我需要的一个例子:.rst代表 r e s tructured t ext。

解决方案

感到惊讶的是,你不能简单地写出

  .rst代表** r ** e ** s ** tructured **文本。 

reStructuredText规范确实表示内联标记必须后面是空格或 - \ / ' ] } > ,所以上面的reStructuredText字符串是不是有效,但是只需要稍微的更改来获取有效的 character 标记将上述更改为

  .rst代表** r ** \ e \ ** s ** \ tructured ** t ** \ ext。

工作正常。 f =http://www.tele3.cz/jbar/rest/rest.html =noreferrer>在线reST到HTML转换器。


How can I make a part of a word bold in reStructuredText?

Here is an example of what I need: ".rst stands for restructured text."

解决方案

I was surprised that you could not simply write

.rst stands for **r**e**s**tructured **t**ext.

but the reStructuredText specification indeed states that inline markup must be followed by white-space or one of - . , : ; ! ? \ / ' " ) ] } or >, so the above string of reStructuredText is not valid. However, only a minor change is required to get valid character markup with backslash escapes. Changing the above to

.rst stands for **r**\ e\ **s**\ tructured **t**\ ext.

works fine. To see this in action try the online reST to HTML converter.

这篇关于reStructuredText中一个字粗体的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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