Code Monkey home page Code Monkey logo

md2html's Introduction

md2html

My humble tool for converting Markdown files to nicely formatted HTML files without fuss. These can be nicer to use and share than plain text.

Run it using

./md2html README.md

md2html will create a file called README.md.auto.html.

Features

  • Easy-to-use commandline call. Can be used, e.g. in conjuction with a file monitor, a script, or a Quicksilver action.
  • One-file HTML output that displays on any computer.
  • Preserves the original Markdown source in the generated file.
  • Simple, pretty CSS. This is taken from toland's QLMarkdown, although most commits to the stylesheet seem to be by jiho. Most of it seems to based on from ``ADC'', presumably the Apple Developer Connection. As required by the QLMarkdown license, credits are included at the bottom.

Dependencies

TODO

  • Compile the HTML file from the source portion in-place. This is a bit tricky because the file is commonly being edited at the same time. Some editors don't handle this well.

Use with Quicksilver

Create an Applescript file at "/Users/lgarron/Library/Application Support/Quicksilver/Actions/Markdown to HTML.scpt" with the code

on open theFile
	set the_file to POSIX path of theFile
	do shell script "[your path md2html] \"" & the_file & "\""
	return null
end open

Make sure that your reference tomarkdown in md2html does not depend on parts of he PATH that are only available in the commandline shell.

Credits

This product includes software developed by David Loren Parsons http://www.pell.portland.or.us/~orc

md2html's People

Watchers

James Cloos avatar  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.