A while back I made [gensite](https://gitlab.com/shockrah/site-generator) a static site generator that was built with pandoc users in mind.
Along with the main script I packaged another script _translate.sh_ which is a (I think) full markdown to html translator.
It uses mostly coreutil things like perl, echo, sed, and grep so it's pretty portable to most systems. Oh and it's built with Bash; though I'm probably going to updated it to run with Dash, a very strict POSIX shell to make it even more compatible.
Oh yea did I mention its only 62 lines of actual code?
Here's the full script in case you want it, or maybe want to add some new feature/syntax or whatevs.