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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use nested_parse_with_titles() instead of nested_parse() #153

Merged
merged 1 commit into from
Dec 27, 2017

Conversation

mgeier
Copy link
Member

@mgeier mgeier commented Dec 22, 2017

See #152.

Note that the heading levels are kinda "reset" inside the reST output cell.
The first heading inside the output cell will have the highest level (one level lower than the surrounding text), the next one the next lower etc., regardless of the actual heading level you selected by choosing the number of # characters!

Try putting something like this into the Markdown output cell:

## level 1

# level 2

... and you'll see that the heading levels are reversed.
This is due to the way how Sphinx/docutils handles heading levels.

I think this behavior may be the one we want, but if that's not the desired behavior, we could try to do something similar as is done in the only directive, see the following links:

sphinx-doc/sphinx#795
sphinx-doc/sphinx@729565b
sphinx-doc/sphinx#886
sphinx-doc/sphinx#1115
sphinx-doc/sphinx@6654687

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

Successfully merging this pull request may close these issues.

1 participant