On 29 dec. 2013, at 00:29, Oliver Taylor <[email protected]> wrote:

> I’m trying to setup a simple Preview Filter for reStreucturedText using 
> pandoc.
> 
> Pandoc reads from STDIN and prints to STDOUT - the following works great in 
> the terminal:
> 
> echo "this is **marked-up** text" | pandoc -f rst -t html
> 
>  =>    <p>this is <strong>marked-up</strong> text</p>
> 
> My thought (and I’m sure this isn’t correct) was that making a Preview Filter 
> would be as simple as a file that looks like this:
> 
> #!/bin/bash
> pandoc -f rst -t html
> 
> …but no luck. Anyone know what I’m doing wrong?

I suspect that pandoc can’t be found in the environment that is presented to 
the shell script. Try using the full path to pandoc instead.

Best,

Maarten

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" 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].

Reply via email to