Thanks Thomas, Great info! I've added that info in the issue on github about the rst3 support at https://github.com/boltex/leojs/issues/80 :)
On Thursday, December 21, 2023 at 11:57:53 PM UTC-5 tbp1...@gmail.com wrote: > On Wednesday, December 20, 2023 at 11:13:38 PM UTC-5 Félix wrote: > > Viktor, > About rst3: I've implemented all of the rst related code in LeoJS, (see > leoRst.ts > in the repository > <https://github.com/boltex/leojs/blob/master/src/core/leoRst.ts>) but > there's a part that I could not transliterate. Here is the magic lines > that I cannot reproduce easily in typescript... :) > > # Third-part imports... > try: > import docutils > import docutils.core > from docutils import parsers > from docutils.parsers import rst > > haha! ;) There's no library in javascript that exist (that I know of) > > The rst3 command can operate without using docutils. There's a setting > about that, *rst3-call-docutils.* I have used rst3 for many sphinx > documents without needing to use docutils. Sphinx itself will use it, but > you run as an external executable outside of the rst3 command. > > I'm not sure what using docutils gets you, but it seems to me that you > could get the command working without docutils, and if someone changes the > settings to ask for them, output a warning message about it. (I think that > it's connected with another setting for writing intermediate files, but I'm > not sure of that. Anyway, I don't use it.) > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/0165d859-a82c-484d-b6e5-68b01c2dec1cn%40googlegroups.com.