Giter Club home page Giter Club logo

md-viewer's Introduction

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://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.


md-viewer's People

Contributors

pmuellr avatar

Watchers

James Cloos avatar Max Lawton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.