michaelstepner / pandoc-mustache

Pandoc filter for variable substitution using Mustache syntax
Creative Commons Zero v1.0 Universal
55 stars 14 forks source link

Add support of Block and CodeBlock #9

Open anobli opened 5 years ago

anobli commented 5 years ago

Currently, the variable substitution is only made for text. This updates pandoc-mustache to also substitute variables in Block and CodeBlock.

Signed-off-by: Alexandre Bailon abailon@baylibre.com

michaelstepner commented 5 years ago

@anobli: This is a good idea! Thanks for submitting this PR.

Would you be up for adding two tests verifying that pandoc-mustache successfully substitutes variables in Block and CodeBlock environments? You could add them as one or two Python scripts in tests/, using the existing tests as examples.

makohoek commented 3 years ago

Hi @michaelstepner ,

It seems that @anobli implemented the tests you've requested in https://github.com/michaelstepner/pandoc-mustache/pull/9/commits/72cd99db4466c68d5c438cd40e37dc33bb88a688

Is there anything preventing from merging this PR?

I would like to get rid of our internal fork we use at BayLibre.

We have been using both patches for quite some time already.