Re: Visible comments?
David Goodger <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <CABiJP=+VDTCukJdQpDogRuC3tH2zF8b01xv4eYZdFJud5Q9Crg@mail.gmail.com> |
On Thu, Apr 27, 2017 at 5:56 PM, Matěj Cepl <[email protected]> wrote: > Hi, > > is there a way (perhaps rst2html5 option) to render comments > visible? I would like to send a draft of my text as HTML5 (or > PDF via rst2xetex) to somebody for review, and then my current > comments may be useful for better understanding of context and > what stands behind my text. > > Any ideas? There is no way currently. There is a --leave-comments option will transform reST comments into <!-- HTML/XML comments -->. They won't show up in the output, but a simple text substitution (after Docutils processing) could transform them into something visible. It would be straightforward to write a transform that converts comments into some other form, like a "comment"-class admonition or something. David Goodger <http://python.net/~goodger> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Docutils-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/docutils-users Please use "Reply All" to reply to the list.