move more out of postprocessing and into markdown processing (like to reduce this postprocessing step to nothing)