resolve relative path in markdown file