Markdown: Don't hardcode filename length

Fixes warning about PATH_MAX and is better anyway.