Handle .md extension properly