A Chrome extension to render Markdown documents.
I will upload the extension to Chrome Webstore later. For now, you can go to chrome://extensions and install it as local file. There're 2 ways:
- Build the
.crx
file by following the steps below (see 'How To Build'), then drag and drop the.crx
file in Chrome window. - Enable
Developer mode
, then clickLoad unpacked extension ...
button then open thesrc
folder in the project folder.
After installation, please check Allow access to file URLs
to read local markdown files.
Open any markdown files in Chrome, it will show its HTML format. You can click the extension action button (at the right end of address bar) to toggle between text/html mode and select different themes.
git clone https://github.com/ubertao/BrowseMD.git
This project uses several popular tools: Node.js
, npm
, bower
and grunt
.
Please install them by following the instruction below:
Node.js
+npm
: Please install it herebower
front-end package manager:npm install -g bower
grunt
task runner:npm install -g grunt-cli
In order to install front-end components and grunt
files, run following command from your project folder:
npm install
bower install
To sign your Chrome extension, you need to put your private key file into project folder under the name key.pem
.
If you don't have a private key, use can use ssh-keygen
to generate one.
Run following command to build the extension:
grunt
The result .crx
file will be generated to build/
folder.
- showdown is used to convert markdown text to html.
- Default CSS from https://gist.github.com/andyferra/2554919
- Additional CSS themes from https://github.com/jasonm23/markdown-css-themes