I think I'm pretty close to getting it working! I've got markdown.lua handling triple backtick code blocks, or as I've learned they're called, "fenced code blocks"
looks like the only issue now is that the syntax highlighter I'm using has a bug where it sometimes fails to notice comments... gotta dig in there