Re: Dollar sign disappears

Guenter Milde via Docutils-users <[email protected]> Mon, 12 Sep 2022 12:32:23 -0000 (UTC)
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
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



_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.