Just FYI, nested_parse() usually generates paragraph node on parsing content body. It means the checkbox directive generates such document tree:
<checkbox><paragraph>item 1</paragraph></checkbox> And it will be converted <p> tag in HTML output. This is why the lines are folded. 2019年9月21日(土) 0:33 Carlos R <[email protected]>: > Hi you all, > > I am willing to create an Sphinx Extension that recognizes the directive > * .. checkbox:: some_text_here_for_the_item * > > in order to create a html checkbox preceding the text in the page. > > I followed this tutorial ( > https://www.sphinx-doc.org/en/master/development/tutorials/todo.html) and > managed to have this (code .py attached): > > > 4. Checkboxes > ---------------------- > .. checkbox:: item 1 > .. checkbox:: item 2 > .. checkbox:: item 3 > > > [image: Capture.PNG] > > > > > > > > > > > > > > The thing that I would like to have is every element in a line in a single > line, and not that > > Could someone tell me if there would be a way of modifying the way sphinx > represents the nodes of each directive ? > Do you have any other workaround ? > > Thank you and have a great day ! > > Carlos > > > > > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/b1f6dc0b-08ae-428e-b8fb-fe4754c9e0fd%40googlegroups.com > <https://groups.google.com/d/msgid/sphinx-users/b1f6dc0b-08ae-428e-b8fb-fe4754c9e0fd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAFmkQANQxt-C0EB8sJ7vzLufEFZXsx5MixUVfNO_2FArE4AysA%40mail.gmail.com.
