GithubHelp home page GithubHelp logo

mdpdf's Introduction

mdpdf

A simple wrapper for markdown-pdf, which automatically uses the settings I find most usefull as defaults.

Depends entirely on markdown-pdf, which can be installed with npm install -g markdown-pdf --ignore-scripts.

To install with the install script, run ./install.sh

If the MDPDF_CSS_PATH environment variable is set, install.sh will copy custom.css to that path. Otherwise, it will copy it to ~/.local/share/mdpdf/custom.css. Similarly, if the MDPDF_INSTALL_PATH environment path is set, the actual mdpdf executable is created there, otherwise, it's created at ~/.local/bin/mdpdf, using envsubst to set the CSS path.

install.sh is written with the assumption that these variables contain the full file path (as in ~/path/to/custom.css instead of ~/path/to). It is provided for convinience, with no promise that it will work as intended. If it does not work, manually copy custom.css and mdpdf to whichever directories you want them in, then replace $CSS_PATH with the actual path to custom.css in mdpdf

mdpdf's People

Contributors

eliminmax avatar

Watchers

 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.