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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/4b3f2186-b738-4262-8c9b-98500726ac3fn%40googlegroups.com.

Reply via email to