@height8 Marked 2 supports "Preprocessor" and "Custom processor", so I imagine it might actually be possible to do a find-and-replace before sending it to pandoc.