On Thu, 27 Feb 2014 13:53:19 -0600
Terry Brown <[email protected]> wrote:
> > Also maybe PanDoc could do something useful.
>
> Just through some simple html from the CKEditor at pandoc, it made a
> reasonable job of making the rst...
So here're Leo @button / @rclick / whatever snippets to convert between
rst and html...
# log p's body text as rst from html
import sarge
rst = sarge.capture_stdout('pandoc -t rst -f html - ', input=p.b)
g.es(rst.stdout.text)
# log p's body text as html from rst
import sarge
rst = sarge.capture_stdout('pandoc -t html -f rst - ', input=p.b)
g.es(rst.stdout.text)
Handy if you want to use CKEditor to edit tables in a rst doc, for
example.
Cheers -Terry
--
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.