This only runs once on page load, but it would be very high impact if this executed when switching between write and preview tabs to provide immediate feedback to those writing in markdown.
Maybe using MutationObserver?
This should account for how write/preview comment boxes are appended to pages.