是否有一种方法可以离线显示。md文件,这样我们就可以知道它上传到Github后会是什么样子?我指的是显示README。md文件,因为它将出现在Github,而不是作为编辑的目的。

需要在Mac和Windows上工作,因为我都用。


当前回答

我发现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,保存并运行

其他回答

看到Python-Markdown-Editor

它是基于:

Python-Markdown pyptions(代码块语法高亮显示) codeirror (javascript代码编辑器) 瓶

使用pip安装:

$ pip install markdown-editor 

它的特点是当你键入预览,代码突出显示,隔离代码块,github风格

它可以通过命令行使用:

$ markdown_edit 

$ markdown_edit README.md

$ markdown_edit -f readme.html README.md

我创建这个是为了构建一个用于发送代码审查的工具,它很容易扩展,通过将其作为模块导入,您可以添加自定义操作。

我刚刚安装了https://github.com/ypocat/gfms。它做了一个非常好的工作渲染github风味markdown。它可以检测你的降价变化,所以你只需要把浏览器和编辑器放在一起。它是Node.js,所以在任何平台上都能正常工作。

如果你已经安装了Node.js,安装很简单:

安装-g GFMS GFMS—端口9999(在您的项目目录中) http://localhost:9999/(用任何浏览器打开)

从现在开始我使用http://marxi.co/。Marxi。Co有线上和线下版本。

对于大多数情况,一个简单的解决方案是:将标记复制/粘贴到“云”中的查看器中。这里有两种选择:

Dillinger.io 丁格斯

不需要安装!交叉平台!跨浏览器!总是可用!

缺点:对于大文件,标准云应用程序的安全问题可能很麻烦。

我只是使用node.js文件监视器和套接字编写了一个离线markdown查看器。因此,您将浏览器指向localhost并运行./markdownviewer /path/to/README。Md,它使用websockets将它传输到浏览器。

降价查看器 https://github.com/Hainish/markdownviewer/