Hi all,

viewrendered2.py now supports markdown in much the same capacity as reST. When '@string view-rendered-default-kind = rst' (the default), vr2 only switches to markdown mode for @md nodes, just like viewrendered does currently. When '@string view-rendered-default-kind = md', vr2 defaults to markdown mode. When vr2's node-lock feature is active, it uses the correct mode of operation for the locked node.

Code highlighting is enabled, but currently doesn't show up unless you have a pygments-compatible .css in the same directory as leo.html.

You can get the markdown source by enabling verbose logging and looking for the 'leo.md' file.

Slideshows don't work, but I don't understand how they work in reST mode anyway. Someone else might want to look at that :)

I've also included Edward's recent fixes to python3 compatibility and code execution environments in the relevant markdown methods.

Additionally, I've introduced 2 top-level methods that may prove useful for future expansions of vr2 into other markup-languages: wvp.render_delegate and wvp.get_mode. By expanding these methods, and the appropriate methods in ViewRenderedController, adding new markup languages is easier than it would have been otherwise.

-->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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to