On Sunday, February 10, 2013 7:06:23 PM UTC-5, Jacob Peck wrote:
>
> On 2/10/2013 6:58 PM, tfer wrote: 
> > I downloaded it to give a try, but to tell the truth the workflow 
> > eludes me.  I think there used to be some stuff on using rst in the 
> > user manual, but there does not seem to be anything there now, was it 
> > lost when rst went from being a plugin to being part of core? 
> No idea, I'm pretty new to Leo myself. 
>
> To use the markdown feature I added in my branch, I make an '@file 
> myfile.md' node with the contents: 
> @color 
> @language md 
> @tabwidth -2 
> @others 
>
> And then I make child @md nodes, containing the markdown that I desire.   
> The @md is a signifier to the viewrendered plugin to render that node as 
> markdown.  To get a live preview, I run the command "vr", and type 
> away... works fine here. 
>
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).

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. 
 

> > I manged to get Markdown installed, (pip failed, but easy_install 
> > worked).  Trying to use listed alt-x commands does not seem to be 
> > working for me, there is no tab completion for those commands, and if 
> > I enter by typing cracking a return on the mini-buffer appears to do 
> > nothing, not even clear it or change focus. 
> Python 2 or 3?  I tested on Python 2.6 and 2.7. 
>
> Also, I didn't add any commands, nor modify any.  I just modified the 
> viewrendered plugin that ships with the current version of Leo... if 
> those commands aren't working, you might want to do some debugging with 
> your setup. 
> > additionally @md is not colorized. 
> The colorizer I hacked together just highlights comments.  I really 
> didn't know what to do as a keyword, operator, etc.  I'll probably hack 
> together a better version some day. 
> > Tom 
> Thanks for giving it a shot!  I'm sorry it didn't work for you. Perhaps 
> someone else has a better idea than me what's going on here? 
>
> -->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