Closed ngirard closed 5 years ago
Well GitHub won't let me upload a .sh
file, but there you have it in anyway.
I can reproduce the issue. I will look into it, probably during the weekend.
Great, thanks !
I found the issue. For some issue I changed the way local assets were handled by removing the ./
from their path. Although that might work great for, say, CSS files, it had an averse effect on running local scripts as processors. I have fixed this issue in pandocomatic version 0.2.5.4. Please install that version and test your scenario again.
Do note that your example still does not work because the ./tidy.sh
script return with exit code 1 because the HTML
element does not have a lang
attribute. You can solve this by doing one of two things:
set the lang
metadata property in your doc.md
file:
---
pandocomatic_:
pandoc:
to: html
standalone: true
postprocessors:
- ./tidy.sh
title: Lorem ipsum
lang: en
---
Your text ...
change the ./tidy.sh
script to capture the output and echo that, thereby ignoring the error status:
#!/bin/bash
output=`tidy -quiet -indent -wrap 78 -utf8`
echo "$output"
Does this solve your issue?
Following the relevant part of the documentation doesn't seem to work.
Here's the test script I wrote (I'm also about to attach it):
Running the test produces an unindented html file.