Some findings I have so far.

1) which leo directive to enable syntax highlight for asciidoc

Use the @adoc node, for example a node with headline @adoc
leoasciidoctest.adoc,
Put @language asciidoc on the body of that node.

2) which directive to use for generating external .adoc file from Leoeditor
Use adoc command, it will generate both .adoc file and corresponding .html
file

3) how to use extensions in .adoc file, for example diagrams, slides

I put some diagram in the asciidoc file, the correct command for generating
html is
         asciidoctor -r asciidoctor-diagram leoasciidoctest.adoc

However, the default adoc command is without the -r asciidoctor-diagram
parameter.
Need to figure out a way to add parameters for the command.

4) which leo command to generate html from .adoc file
Use adoc command as #2

5) which leo command to generate pdf from .adoc file
May need to add new command by calling g.execute_shell_commands.

-- 
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/CAEpKVv_L40foxFnpTX_ahe0Da1xVZqvQrmv%3DK0H3gK-2ZviBXQ%40mail.gmail.com.

Reply via email to