Re: Is there a plan to integrate fenced code blocks in rst?
Guenter Milde via Docutils-users <[email protected]> Mon, 7 Dec 2020 07:41:28 -0000 (UTC)
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
On 2020-12-05, Gökçe Aydos wrote: > [-- Type: text/plain, Encoding: quoted-printable --] > I use rst heavily for my documents and slides for teaching which in turn > include many code blocks. Is it possible to use code blocks in rst > without indenting them, e.g., like *fenced code blocks*? > The reason is, it is cumbersome to copy and paste indented code blocks. > There is an extension for Sphinx for this purpose [1]. Is there a plan > to integrate fenced code blocks in rst? There are currently no plans to do that and I do not expect this to come easily or anytime soon. (You many, however, file (or add to) an enhancment ticket at the issue tracker https://sourceforge.net/p/docutils/feature-requests/.) One problem with [1] is a possible clash with section underlining like :: Tip ``` In rST, section underlines may use any of the characters ``= - ` : ' " ~ ^ _ * + # < >``. The development version 0.17b.dev in the repository has experimental support for Markdown sources, where fenced literal blocks are part of the format specification. Günter > [1] https://sphinx-codefence.readthedocs.io/ _______________________________________________ Docutils-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/docutils-users Please use "Reply All" to reply to the list.