On Friday, November 1, 2024 at 4:11:43 PM UTC-4 Edward K. Ream wrote:

On Wed, Oct 30, 2024 at 6:40 PM Thomas Passin <[email protected]> wrote:

Now that we have a more stable import format for @jupytext nodes, I redid 
my script to produce a version that renders the file with VR3.


Very cool. I see intermixed @python and @md directives. Does your script 
insert those directives?


Yes it does. VR3 can have any number of mixed code language sections in a 
tree or even in a single node. Each code section will get colorized by a 
colorizer for its language.  Colorizing is (I think for all three of RsT, 
MD, Asciidoc) by pygments which isn't the greatest but that's out of my 
hands.  Of course, if the code language sections are for different 
programming languages, code execution will be highly unlikely to work, 
since all the code blocks are collected into a single string that gets 
executed.

BTW, VR3 has a menu item that will render only the code blocks.

Those directives are why I claimed so confidently that the MD and code 
sections of the jupytext file could be recovered.

-- 
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 visit 
https://groups.google.com/d/msgid/leo-editor/53b6fa62-c6ce-4da5-96f5-3b2a57113a9dn%40googlegroups.com.

Reply via email to