All Projects β†’ ryangrose β†’ Easy Pandoc Templates

ryangrose / Easy Pandoc Templates

Licence: gpl-3.0
A collection of portable pandoc templates with no dependencies

Projects that are alternatives of or similar to Easy Pandoc Templates

Marker
πŸ–Š A gtk3 markdown editor
Stars: ✭ 644 (+2700%)
Mutual labels:  markdown, pandoc, markdown-to-html
Markdeck
presentations as code - author cool slide decks, text-only, offline-ready, collaborative
Stars: ✭ 1,159 (+4939.13%)
Mutual labels:  markdown, pandoc, markdown-to-html
Summarytools
R Package to Quickly and Neatly Summarize Data
Stars: ✭ 390 (+1595.65%)
Mutual labels:  markdown, pandoc
Assemble
Community
Stars: ✭ 3,995 (+17269.57%)
Mutual labels:  markdown, templates
Mditor
πŸ“ [ M ] arkdown + E [ ditor ] = Mditor
Stars: ✭ 523 (+2173.91%)
Mutual labels:  markdown, markdown-to-html
Crisscross
A Markdown-centric template engine for batch offline document generation.
Stars: ✭ 18 (-21.74%)
Mutual labels:  markdown, pandoc
Markup.rocks
Pandoc based document editor and converter in your browser.
Stars: ✭ 348 (+1413.04%)
Mutual labels:  markdown, pandoc
Docpress
Documentation website generator
Stars: ✭ 815 (+3443.48%)
Mutual labels:  markdown, markdown-to-html
Nb
CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
Stars: ✭ 3,846 (+16621.74%)
Mutual labels:  markdown, pandoc
Pandoc
Universal markup converter
Stars: ✭ 24,250 (+105334.78%)
Mutual labels:  markdown, pandoc
Daux.io
Daux.io is an documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly. It helps you create great looking documentation in a developer friendly way.
Stars: ✭ 603 (+2521.74%)
Mutual labels:  markdown, markdown-to-html
Pico
Pico is a stupidly simple, blazing fast, flat file CMS.
Stars: ✭ 3,494 (+15091.3%)
Mutual labels:  markdown, markdown-to-html
Grav Plugin Admin
Grav Admin Plugin
Stars: ✭ 316 (+1273.91%)
Mutual labels:  markdown, markdown-to-html
Letter Boilerplate
Finest letter typesetting from the command line
Stars: ✭ 374 (+1526.09%)
Mutual labels:  markdown, pandoc
Xm
β‚ͺ extensible HTML
Stars: ✭ 310 (+1247.83%)
Mutual labels:  markdown, markdown-to-html
Pandoc Starter
πŸ“„ My pandoc markdown templates and makefiles
Stars: ✭ 443 (+1826.09%)
Mutual labels:  markdown, pandoc
Zola
A fast static site generator in a single binary with everything built-in. https://www.getzola.org
Stars: ✭ 7,823 (+33913.04%)
Mutual labels:  markdown, markdown-to-html
Pandoc Letter
Pandoc template for writing letters in markdown
Stars: ✭ 303 (+1217.39%)
Mutual labels:  markdown, pandoc
Markdown Preview Enhanced
One of the 'BEST' markdown preview extensions for Atom editor!
Stars: ✭ 3,478 (+15021.74%)
Mutual labels:  markdown, pandoc
Zettlr
A Markdown Editor for the 21st century.
Stars: ✭ 6,099 (+26417.39%)
Mutual labels:  markdown, pandoc

easy pandoc templates

A collection of portable pandoc templates with no dependencies

requires pandoc

Screenshot

Live Demo

quick start

install

# Clones repo to /tmp and copies templates to ~/.pandoc/templates

curl 'https://raw.githubusercontent.com/ryangrose/easy-pandoc-templates/master/copy_templates.sh' | bash

usage

# pandoc source.md -o destination.html --template=template_name.html

pandoc 'https://raw.githubusercontent.com/jgm/pandoc/master/MANUAL.txt' -f markdown -o sample.html --template=easy_template.html --toc

motivation

I was tired of how complicated making a nice-looking html page with pandoc was, so I decided to simplify it. CSS files were a good start, but to use anything more complicated (such as bootstrap or javascript files) I needed templates. The problem was that most templates used static references to local files, which required the file to be in the same directory as these files. In other words, you were forced to write your documents in the cloned repo directory.

To solve this, I turned to the ubiquity of CDNs and github. I began by converting the static references to css, js, etc files to ones loaded via CDN in the html head block. This made the templates portable as well as always up-to-date since the CDN (rawgit) pulls from Github.

usage

Use it just like any other pandoc template, but don't worry about where the extraneous files are (like css, js, etc)

# pandoc source.md -o destination.html --template=template_name.html

pandoc source.md -o destination.html --template=easy_template.html

Pandoc will look in ~/.pandoc/templates for files with the template name.

Don't forget to add --toc if you want a table of contents.

If you want the document to work offline, add the --standalone flag to pull all of the headers into the final document. See the pandoc manual for more info

installation

To install all the templates:

# Clones repo to /tmp and copies templates to ~/.pandoc/templates

curl 'https://raw.githubusercontent.com/ryangrose/easy-pandoc-templates/master/remote_install.sh' | bash

To install a single template, copy the given template to ~/.pandoc/templates.

# curl '<url to raw html template in this repo>' > ~/.pandoc/templates/<template name>

curl 'https://raw.githubusercontent.com/ryangrose/easy-pandoc-templates/master/html/easy_template.html' > ~/.pandoc/templates/easy_template.html

gallery

elegant bootstrap

A nice looking responsive template using bootstrap. Can create a nice table of contents menu

Live Demo

uikit

Live Demo

bootstrap

A nice looking responsive template using bootstrap. Can create a nice table of contents menu

Live Demo

extras

auto-updating

filewatcher is a ruby gem that automatically executes a given command when a file changes. Using this with pandoc provides a convenient way to view the compiled file in real time. Note: the browser doesn't auto refresh on file change, so that still needs to be done by hand.

Look at filewatcher's docs for more info

filewatcher README.md 'pandoc README.md -o README.html --template=bootstrap_menu.html'

vim

Want to preview your markdown file instantly in the browser? Add the following line to your .vimrc to bind Ctrl-m to compile vim's current file and display it in firefox. Feel free to change the template as you please

# For firefox
noremap <C-M> :! pandoc '%:p' -o /tmp/'%:p:t'.html --template=easy_template.html --toc && firefox /tmp/'%:p:t'.html &<CR><CR>

# For chrome
noremap <C-M> :! pandoc '%:p' -o /tmp/'%:p:t'.html --template=easy_template.html --toc && google-chrome /tmp/'%:p:t'.html &<CR><CR>

contributing

It's a simple concept, so if you've got an idea send me a pull request! You can also see a primitive roadmap for ideas

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].