If I apply this Text filter (pandoc.sh):

cd "$(dirname "$BB_DOC_PATH")";
pandoc --from markdown --to html --standalone "${BB_DOC_PATH}" -o 
"${BB_DOC_PATH%%.*}".html

…to a text file (with nothing selected), the converted HTML file will be 
stored as expected – but the content of the open text file will be deleted. 
This is undoable, but why does it happen / how can it be avoided?

(I have used similar scripts as *Preview* filters for years, where this 
problem didn’t occur.)

Thank you.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://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 view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/54c684f0-c7f3-4d05-85d9-e9e0b78ed732n%40googlegroups.com.

Reply via email to