Hi Christopher,

As both your scripts read from stdin and write to stdout, 
you could probably pipe them in a third script like so:




*    #!/usr/bin/env zsh        /path/to/perl Strip_YAML.pl | /path/to/perl 
Markdown.pl*
and use it as a text filter.

Note that BBEdit is already equipped to preview Markdown files.
See the documentation in BBEdit Help > User Manual and search for 
'Markdown'.

HTH,

Jean Jourdain
On Thursday, April 3, 2025 at 3:34:13 AM UTC+2 Christopher Finazzo wrote:

> I have a script 
> <https://gist.github.com/chrisfinazzo/655ecb941087741c553ebc01e71383a8> 
> that strips out front matter from a file when it is shown in the HTML 
> Preview. I also want to visually inspect my links to make sure that they 
> display correctly, so I also pass files through Markdown.pl 
> <https://daringfireball.net/projects/markdown/> inside the preview window.
>
> Is there a way to run 2 scripts in parallel inside the preview to 
> accomplish this?
>
> On paper, this *should *work by combining the two, but I'm rather lost as 
> to how to make it happen.
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"[email protected]" rather than posting here. Follow @bbedit on Mastodon: 
<https://mastodon.social/@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 view this discussion visit 
https://groups.google.com/d/msgid/bbedit/36b98920-0f2e-4d8a-aafb-38e4caf199a9n%40googlegroups.com.

Reply via email to