在站点上自动降价到 html

Markdown to html automatically on a site

我知道我可以使用一堆脚本将 MD 文件转换为 HTML。

我成为托管在 github 上的站点的一部分,它有一个 place_holder.md 文件。如果我访问 place_holder 域,我可以查看其内容。如果我更改 md 文件中的任何内容,并将其推送到存储库,它会立即更新。如果我访问 place_holder.html 我可以看到它的内容,即使该文件不在 github 存储库

所以我的问题是:

github hoster stuff 有我看不到的自动 md 转换器吗?在这种情况下,我在哪里可以得到这样的东西?

网络浏览器默认理解 markdown 吗?那为什么我在 url 中看不到 place_holder.md

谢谢

我不确定你要求如何实现它,但请看一下 marked。它超级好用而且非常灵活。

If i visit the place_holder.html i can see its content, even that the file is not in the github repo

当然,您可以查看 place_holder.html 文件,它是您计算机上的一个 html 文件,您的浏览器可以呈现该文件,因此您可以查看它。

Does github hoster stuff has an auto md converter which i cannot see?

我不相信 github 有 "auto md converter"

In this case where can i get something like this?

您可以使用jekyll to convert your plain text and markdown to static html pages which you can host on the web. You also can get text editors to preview your markdown before you convert it into html which can be helpful. Here is one online text editor.