Hi Christophe,
Thank you very much for your reply.
I've not used lua filters before. It took me a while to realise how to make a command line with the input file and output file.
I thought I'd write back and include tis for the benefit of any novices like me.
I've now done this with your script, inserting the '-i' for the input file and using output redirection '>' for the output file
pandoc --lua-filter note.lua -t markdown -i <input file> | sed -e 's/%%opening%%/\^\[/g' | sed -e 's/%%closing%%/\]/g' > <output file>
This works on my small example file.
Thank you once again.
'ö-Dzin
|
འོད་འཛིན་དྲི་བྲལ
'ö-Dzin Tridral | about.me/tridral |
|
|
☸ Drala Jong Appeal - creating a Buddhist retreat centre in Wales
: https://www.drala-jong.org/ ☸
☸ Achos pan ddaw y Pedwar Marchog i ofyn a roist ti o dy gyfan - fydd gen ti ddim esgus - Meinir Gwilym ☸