convert inline examples into external markdown file