GithubHelp home page GithubHelp logo

md2html's Introduction

md2html

md2html walks a directory of markdown files, running pandoc on each one to create a similar tree of html files. It is hugely more efficient than scripting multiple pandoc executions when processing a large number of files. On 4000 files we saw an 8 minute run reduce to a 10 second run.

Installation

This is all very provisional and needs to be verified!

First you'll need to install the 2014 Haskell Platform. You need at least ghc 7.8 and cabal 1.18.

Then, clone this repo and use cabal to install it in a sandbox. If prompted for other dependencies, install those too using cabal install dependency_name.

git clone github.com/gmp26/md2html.git
cd md2html
cabal sandbox init
cabal install pandoc
cabal install Glob
cabal configure
cabal install

When this is successful, the executable will be built in .cabal-sandbox/bin/md2html. It's too large to distribute here since it embeds pandoc.

Test

cd md2html
mv html html.orig
.cabal-sandbox/bin/md2html

This will rebuild the html folder from the md folder.

md2html's People

Contributors

gmp26 avatar

Watchers

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