问题描述
下面是我需要的一个例子:.rst代表 r e s tructured t ext。
感到惊讶的是,你不能简单地写出
.rst代表** r ** e ** s ** tructured **文本。
但确实表示内联标记必须后面是空格或 -
。
,
:
!
?
\
/
'
)
]
}
或>
,所以上面的reStructuredText字符串是不是有效,但是只需要稍微的更改来获取有效的将上述更改为
.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中一个字粗体的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!