From: Satish B.D. <bds...@gm...> - 2022-09-09 17:33:15
|
Hi, Does the dollar sign have any meaning inside double asterisks in rst? I want the following in bold: **US $25** The HTML is rendered as: <p><strong>US 5<p><strong> Where did the $2 disappear? Am I missing something? Thanks and regards, Satish |
From: Guenter M. <mi...@us...> - 2022-09-12 12:32:41
|
On 2022-09-09, Satish B.D. wrote: > Hi, > Does the dollar sign have any meaning inside double asterisks in rst? > I want the following in bold: > **US $25** > The HTML is rendered as: ><p><strong>US 5<p><strong> Here, converting your example line with both, `rst2html` as well as `rst2html5` results in:: <p><strong>US $25</strong></p> Docutils version 0.19.1dev > Where did the $2 disappear? Am I missing something? I can only guess: In standard rST, the character "$" has no special meaning. I know of a "math extension" for sphinx that designs a special meaning (start/stop mathematical mode) to $. There may be other extensions or pre-/post-processing changing the outcome... Günter |
From: Satish B.D. <bds...@gm...> - 2022-09-12 13:29:51
|
Thanks Günter, > I know of a "math extension" for sphinx that designs a special meaning > (start/stop mathematical mode) to $. There may be other extensions or > pre-/post-processing changing the outcome... Indeed it was a post-processing bug, where the dollar had to be escaped. Sorry for the noise. Regards, Satish |