@bergkvist/mdmake

1.1.0 • Public • Published

npm script for creating a markdown template: [filename].md + Makefile -> [filename].pdf

Creating a project

[some-folder]$ npx @bergkvist/mdmake [filename]

This will create a Makefile as well as [filename].md in the current folder.

Usage after creation

# Compile [filename].md to [filename].pdf
[some-folder]$ make

# Run make automatically whenever [filename].md changes.
[some-folder]$ make watch

# Preview pdf (with automatic updates) in zathura pdf viewer.
[some-folder]$ make preview

# Open file for editing in gedit
[some-folder]$ make edit

Requirements

  • pandoc with pdf-latex (for compiling from [filename].md -> [filename].pdf)
  • zathura (for opening pdf-preview)
  • entr (for watching file changes)
  • make (for using the make commands)
  • gedit (for using make edit)

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @bergkvist/mdmake

    Weekly Downloads

    1

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    3.23 kB

    Total Files

    5

    Last publish

    Collaborators

    • bergkvist