Improved unrendered MD header detection. Fixes specific case described in #117.