On Wed, May 24, 2017 at 4:43 AM, Joe Orr <[email protected]> wrote:

> Just posted an updated version.
>
> New features:
>
> * D3 Trees
> * Nested menus
> * Subtrees (node can point to another Leo file)
> * Works with trunkless trees now
>
> https://github.com/kaleguy/leoviewer
>
​
Many thanks for this work.​

I was going to use the LeoDocs file as a demo, but it has a lot of rst
> panes, and Leoviewer doesn't support rst.
>

​Not sure what you mean by "rst pane". There are many @rst trees, which you
can optionally render in the viewrendered pane.
​

> Is it simple to convert those to md or html?
>
​
There are several possible answers:

1. You can use the rst3 command to convert one or more @rst3 trees to
.rst.txt files in leo/doc/html.  Then, from that directory, you can use
"make html". This assumes you have sphinx installed.

2. Leo doesn't have a command like the rst3 command to make markdown files.
Instead, you can use @auto-md to create .md files. There are several
examples in leo/doc/leoDocs.leo.

*Important*: At present, you have to generate tables of contents "by hand",
using the "make-md-toc" button. That is, you select the root of a tree you
for which you want the toc and press the button.  The button writes the toc
to the console. You copy it from the console to the desired location in the
outline.  Saving the outline causes @auto-md to write the toc.

It wouldn't be too hard have "@button make-md-toc" do more automatically.
Suppose we define a "placeholder" directive, say @md-toc.  The script could
replace @md-toc with the generated toc...

Still not sure whether I have answered your question :-) I'd be happy to
discuss this further.  Leo really should have better support for markdown.
The markdown analog of the rst3 command would be *much* simpler than the
rst3 code.

Edward

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to