Some Misc Notes

Include Code Samples Files

Your files:

include-code-block.lua
docs/
    my-file.md
    code-samples/
        Foo.hx

In my-file.md:

Hi.

~~~{.haxe include=code-samples/Prog.hx}
~~~

Bye.

In include-code-block.lua:

Then, from within the docs directory, process like so:

pandoc -s -o my-file.html --lua-filter=../include-code-block.lua my-file.md