Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make emojis in titles not cause: WARNING: headline too short #660

Open
legendenomgeorg opened this issue Aug 11, 2022 · 1 comment
Open

Comments

@legendenomgeorg
Copy link

If i make a title in a .ipynb file like "# Description of currently available functions馃摉", I get a warning when building the documentation using sphinx-build:

Description of currently available functions馃摉
=============================================
C:\path\Functions.ipynb:45: WARNING: Title underline too short.

I could of course supress all warnings, but i do not want to do that, since my supervisor deems some of the warnings too import to not fail our CI-setup. I've tried to supress the specific warning in sphinx, but it seems to be impossible, as the warning stems from docutils, and not sphinx.

I think the problem is, that nbsphinx does not regard the emoji in the title as a character, and therefore creates a too short underline, when converting the notebook to a .rst file.

Note: The documentation gets built succesfully and the emojis are present in the titles.

@legendenomgeorg legendenomgeorg changed the title Make emojis in titles not cause WARNING: headline too short馃槨 Make emojis in titles not cause: WARNING: headline too short Aug 11, 2022
@mgeier
Copy link
Member

mgeier commented Aug 26, 2022

Thanks for reporting this!

I think this is related to the external pandoc software which is currently (until #36) used to convert Markdown to reStructuredText.

Your example headline works for me without warning.

Which version of pandoc are you using?
Maybe you can upgrade?

$ pandoc --version
pandoc 2.17.1.1

You can also try the behavior by pasting the headline into a terminal:

$ pandoc -f markdown -t rst
# Description of currently available functions馃摉
<press Ctrl-D>
Description of currently available functions馃摉
==============================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants