是否有一种方法可以离线显示。md文件,这样我们就可以知道它上传到Github后会是什么样子?我指的是显示README。md文件,因为它将出现在Github,而不是作为编辑的目的。
需要在Mac和Windows上工作,因为我都用。
是否有一种方法可以离线显示。md文件,这样我们就可以知道它上传到Github后会是什么样子?我指的是显示README。md文件,因为它将出现在Github,而不是作为编辑的目的。
需要在Mac和Windows上工作,因为我都用。
当前回答
不久前我写了Grip,就是为了做到这一点。它渲染完全像它在GitHub上,并提供了几个额外的选项:
除了readme, Grip还可以渲染GitHub评论和问题 单击本地链接以呈现其他.md文件 在您自己的项目中使用的API 导出到HTML文件
使用pip安装:
pip install grip
然后进入包含README文件的目录并运行:
grip
传递-h以获得额外的帮助和选项。
这是Grip渲染的README截图:
点击这里查看。
其他回答
Visual Studio Code -微软的新编辑器也为降价编辑提供了很好的支持。 你可以从这里下载。 编辑器提供了在降价代码和预览模式之间切换的良好支持。 它还为所有markdown语法提供了相当好的智能感知支持。 该编辑器是免费使用的,也是跨平台的(适用于Linux, Windows和Mac)。 要了解更多细节,你可以在他们的网站上查看
看看Haroopad。这是一个非常好的#markdown编辑器。它是免费的,可用于多个平台。我在Mac OSX上试过。
我发现MarkView谷歌Chrome扩展非常有用,实际上它的工作就像一个魅力:
MarkView is a Chrome extention for editing and viewing markdown file with an outline view, support multiple table format styles, code block syntax highlight and Github Flavored Markdown. Features: Editing and Viewing markdown file in web page style. Auto reload local file when file is changed (Post-installation: select "Allow access to file URLs" option in chrome://extensions/) Show outline beside the content in scrollable way Have buttons for GoTop, ViewSource and GoBottom Support Github Flavored Markdown table styles and code highlight. Highlight the code area for programming languages(eg. ```ruby) Support web pages printing with decent outlook(Chrome->File->Print...) Responsive: when the window size small than 940px, outline section will automatically hidden; resize bigger than 940px, outline section will display. MarkView will view all markdown files except those under raw.github.com because that subdomain only displays the source.
更多的功能已添加到MarkView:
所见即所得markdown编辑器 主题和代码样式选择 支持脚注1系 即时幻灯片演示 文档自定义样式 添加主题CSS并选择 添加代码样式并选择 编写CSS,保存并运行
RStudio可以处理标记文件并将其转换为html和pdf。如果您已经拥有它,您可以使用RStudio(它是R编程语言的IDE)。它是免费的开源软件,适用于Windows、Mac和Linux系统。
非凡,当然是一个伟大的工具。
注意:不适用于Mac
特点:
实时预览 这是免费的。 非常轻量级的 导出为HTML, PDF
下载:https://remarkableapp.github.io/。
编辑2022
我现在使用并喜欢Mark Text。(https://marktext.app)