-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
RST reader produces headers below top level #3750
Comments
Not sure about this. docutils' rst2html.py will simply abort on this input with a severe error. We don't do that; pandoc's general approach is not to exit with an error (though we might rethink that). Since this is invalid RST anyway, is it terrible if pandoc interprets it as having a header inside a list item? I can see more reason to be concerned about pandoc's RST writer, if it produces this. |
Well, in my example pandoc exits with an error because FB2 writer does not expect headers inside a list I have not checked with rst2html. If it is invalid RST then ok, I just though it may be better to just parse --- as something else, like text "b ---", or abort with an error. Header inside a list item just does not make sense. |
… header. This only applies to section headers inside list items, e.g., which were otherwise silently omitted. See #3750.
OK, it's really more an issue with the FB2 writer then, since in some formats you certainly can have headers inside lists. I've changed the writer so it handles this more gracefully. |
Ok, I tested it, now it outputs With Muse reader it is a bug in Muse reader, through. |
The bug is similar to the one fixed in Muse reader in PR #3749
As a result, conversion to FB2 may produce an "unexpected header in section text":
The text was updated successfully, but these errors were encountered: