Skip to content

harleywang/md-viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md-viewer - a desktop Markdown viewer app built on Electron

usage

md-viewer is a very simple Markdown file viewer desktop application. It will render a Markdown file into HTML and display the HTML in an embedded web view in an application window.

You change the text size via menu and shortcut, the exact same way you "zoom" pages in the Chrome web browser. The file you are viewing will be watched, and the view will be updated when the file changes.

The markdown is rendered into HTML with the marked package. The following options are used to render the markdown:

gfm:          true
tables:       true
breaks:       false
pedantic:     false
sanitize:     false
smartLists:   true
smartypants:  false

On OS X, md-viewer associates itself with Markdown files (files with the .md extension), so you should be able to open a Markdown file with an "Open With..." kind of menu option. To set md-viewer to be the default application used with Markdown files on a Mac, see these instructions on how to change default apps on the Mac.

install

You can download a pre-built binary from the distribution repos; each repo manages at platform-specific version, and the binaries are available as archives in the repo's releases page. For each released version, you can download either a .zip or .tar.gz archive.

building

  • clone this repo
  • run npm install to install dependencies
  • run npm run build to build the execute

A "build" version of the executable is available in the build directory, to make it easier to test a development version while you have a stable version installed at the same time, on your boxen.

To build a distribution, you will need to have the relevant md-viewer-dist-... repo checked out along-side this one.

hacking

This project uses cake as it's build tool. To rebuild the project continuously, use the command

npm run watch

Other cake commands are available (assuming you are using npm v2) with the command

npm run cake -- <command here>

Run npm run cake to see the other commands available in the Cakefile.

license

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http:https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


About

a desktop Markdown viewer app built on Electron

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.4%
  • CSS 26.7%
  • CoffeeScript 12.6%
  • HTML 2.3%