hook for custom markdown post-processing