[markdown] Fix header highlighting for trailing #