Used pandoc for preappend and append processing.  Adjusted beautiful soup processing so that code block syntax styling would work