embed html from another file into a markdown document

风流意气都作罢 提交于 2020-07-31 04:42:11

问题


If I have an html file somewhere in the same folder as a markdown document, is there any way to embed the entire file inside a markdown document, so that the html will be rendered correctly (not just the code displayed)?


回答1:


Markdown doesn't support includes out-of-the-box. You need to use one of the existing flavors or static site generators that support markdown or/and HTML inclusions. For example, DocFX




回答2:


You can't include other Markdown files in Readme (Readme is usually Markdown file). You can use the "Quote" (See example below)

This is Quote

> This is Quote

You can see my Markdown guide here



来源:https://stackoverflow.com/questions/61606388/show-contents-of-a-md-file-in-another-in-github

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!