0

I try to add a collapsible section on a restructuredText file, but I fail to find some support material. For markdown text, it is straight-forward: https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab

Best regards.

  • 2
    Which tools are you using to render the rst? Some have extensions for this (such as Sphinx has sphinx-design) but it's not a native rst feature – Lorna Mitchell Mar 17 '23 at 11:34
  • If you are using Sphinx, see https://stackoverflow.com/q/2454577/407651 – mzjn Jun 14 '23 at 05:44

1 Answers1

0

I recommend you use the Sphinx Design extension, which offers dropdown doing what you are asking for.

Matt Warrick
  • 1,385
  • 1
  • 13
  • 22