stmd.js: Fixed ATX header parser bug.

Don't count an escaped # at the end as a closing string of #s.
Closes #16.
spec:  Added a test with single escaped # at end of ATX header.