如何在 reStructuredText 中将单词的一部分加粗?
这是我需要的示例:“.rst 代表 restructured text。”
最佳答案
我很惊讶你不能简单地写
.rst stands for **r**e**s**tructured **t**ext.
但是 reStructuredText specification确实指出内联标记必须后跟空格或 -
.
,
:
之一;
!
?
\
/
'
"
)
]
}
或 >
,所以上面的 reStructuredText 字符串是 not 有效。但是,只需稍作更改即可使用反斜杠转义获得有效的 character markup。将上述更改为
.rst stands for **r**\ e\ **s**\ tructured **t**\ ext.
工作正常。要查看实际情况,请尝试 online reST to HTML converter .
https://stackoverflow.com/questions/12771480/