Fix markdown plugin so it's run only when needed