-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
List item with a definition list inside renders incorrectly #221
Comments
Your reStructuredText file actually produces enumerated lists with definition lists (with a single item) in their items. Is that what you intended? See the output from rst2pseudoxml.py (comes with docutils) below to clearly see the document structure. $ rst2pseudoxml.py nested_lists.rst
Lists need to be preceded by a blank line (see the bullet list example in the reStructuredText Markup Specification). For your example: #. Bandits with exploration and fixed context
#. The context is fixed.
#. This is a classical Multi-Armed Bandit Scenario
#. When the entire scenario is played out in a fixed environment with no moving variables
Algorithms:
#. :math:`\epsilon`-Greedy
#. UCB
#. Thomson Sampling
#. Bandits with exploration, variable context and fixed actions
#. Actions are fixed but the context is featurized This is probably still not what you want, since the extra indentation produces block quotes. Make sure the indentation of the nested lists match that of the paragraph above: #. Bandits with exploration and fixed context
#. The context is fixed.
#. This is a classical Multi-Armed Bandit Scenario
#. When the entire scenario is played out in a fixed environment with no moving variables
Algorithms:
#. :math:`\epsilon`-Greedy
#. UCB
#. Thomson Sampling
#. Bandits with exploration, variable context and fixed actions
#. Actions are fixed but the context is featurized Is that what you wanted? All that said, your original input file should still place the definition on the same line as the list item number. I'll look into that! |
The blank line before the inner lists actually solves the problem. Thanks alot. |
This issue can be considered as solved, i think. |
Reopening this to track the definition-list-in-list-item rendering issue. |
Issue:
This is the output of lists having nested lists, in fact lists with any inner nested content, behave like this:
I don't see this issue with lists that are not nested, for example the inner lists are fine.
Below is the
rst file
for the above output.Is there any other information I should be providing? I am assuming
stylelog
might be needed. Should i upload the entire file, or only relevant lines?Technical Stats
The text was updated successfully, but these errors were encountered: