Sphinx: Cannot use asterisk emoji with Sphinx and without warnings?

Created on 3 Oct 2020  路  3Comments  路  Source: sphinx-doc/sphinx

Describe the bug

If I use an asterisk emoji character in my documentation (*锔忊儯) then Sphinx will complain with a warning:

WARNING: Inline emphasis start-string without end-string.

That is because it is interpreting the character as a separate asterisk plus something else.

To Reproduce

Add a *锔忊儯 character to your documentation. Example index file:

Asterisk emoji
==============

*锔忊儯

Expected behavior

No warnings are thrown.

Environment info

  • OS: Linux (Fedora 32)
  • Python version: 3.8.5
  • Sphinx version: 3.2.1
  • Sphinx extensions: sphinxemoji.sphinxemoji
bug docutils

All 3 comments

Thank you for reporting. But this is a bug of docutils (a reST parser which Sphinx uses internally). Could you report this into docutils project?

Reproducing the error with docutils' rst2html.py:

$ cat test.rst
Asterisk emoji
==============

*锔忊儯
$ rst2html.py test.rst > /dev/null
test.rst:4: (WARNING/2) Inline emphasis start-string without end-string.

@tk0miya Sure: https://sourceforge.net/p/docutils/bugs/405/

Long time since the last time I interacted with an SVN project in SourceForge! :joy:

Good work :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samweisgamdschie picture samweisgamdschie  路  3Comments

shimizukawa picture shimizukawa  路  3Comments

jessetan picture jessetan  路  3Comments

scolby33 picture scolby33  路  3Comments

jfbu picture jfbu  路  3Comments