I'm experimenting with using pandoc to generate customized documentation based on a yaml data stream and a custom template.
I have the following inputs:
test.yaml
------------
---
example: |
foo@bar {
baz = <11>;
};
...
test.template
-----------------
$if(example)$
# Example
$endif$
$for(example)$
```
$example$
```
$endfor$
command line
-------------------
$ pandoc test.yaml --from markdown+yaml_metadata_block --template test.template -s -o
test.md
----------
# Example
```
foo@bar { baz = \<11\>; };
```
I see that the markdown support drops the newlines and whitespace in my yaml string. It also escapes
other characters since it doesn't realize this is something I want preserved.
Is there some way to convince pandoc's markdown reader/writer to yield output like the following?
```
```
Thanks,
Matt