pack markdown and linked images