On 2/11/2013 1:28 AM, tfer wrote:
Ah, the @rst outline directive lets all of its subnodes be rendered as if they contain rst markup text, no matter how they are named, (even imported files, "@files"), without needing to be labeled @rst again. Following your tips I got this to work, but I noticed the following:

1. With a document containing both md and rst, Leo with only the rst renderer will run render the @md nodes when the node is selected, (actually any node with text other than pure directives).
This is because there's a guard to make sure the user has the 'markdown' module installed. If, for example, you had 'markdown' but not 'docutils' installed, you'd be able to render the @md nodes!

You can change this default of rst rendering by changing `@string view-rendered-default-kind = rst` by replacing `rst` with `md`, `html`, or I would imagine `plain` would work to not have a default renderer. Put this setting in your myLeoSettings.leo file.
2. When the md capable version is loaded and alt-x vr is run, them @md headlined nodes are rendered correctly, (mostly), but the rst renderer is still active, and will work on any node with non-directive body text.
Could you possibly provide an example where it doesn't render correctly?

As mentioned above, the default renderer for all nodes is rst.

Also, I'm going to have to tweak this a bit. There are some settings that should be exposed via myLeoSettings.leo that currently arent. I'll be working on this.

I just pushed a new rev (5606) to my branch that has a fancier colorizer. You might wish to check that out.

Thanks!
-->Jake

--
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 http://groups.google.com/group/leo-editor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to