• Stars
    star
    136
  • Rank 267,670 (Top 6 %)
  • Language
    Haskell
  • License
    MIT License
  • Created about 8 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Convert Pandoc Markdown-style footnotes into sidenotes

pandoc-sidenote

Convert Pandoc Markdown-style footnotes into sidenotes

This is a simple Pandoc filter to convert footnotes into a format that can be consumed by Tufte CSS and Pandoc Markdown CSS Theme. On the whole, this project weighs in at well under 100 lines of code. Check out SideNote.hs if you're curious how it works.

It's used by calling pandoc --filter pandoc-sidenote. To see it in action, see Tufte Pandoc CSS, a project which uses it. In particular, take a look at the Makefile included in that project.

The core functionality is also exposed as a library, which can be called by Haskell applications such as Hakyll.

Dependencies

pandoc-sidenote is build against a specific version of Pandoc. This table maps pandoc versions to pandoc-sidenote versions:

pandoc pandoc-sidenote
3.0 0.23.0
2.11 0.22.0, 0.22.1, 0.22.2
2.9 0.20.0
2.1, 1.19 0.19.0
1.18 0.9.0

If a newer version of pandoc has been released, the Stack build manifest will need to be adjusted for that version, and the project then rebuilt.

Installation

Cabal

pandoc-sidenote is on Hackage and can thus be installed using cabal:

cabal install pandoc-sidenote

Homebrew

If you're on OS X, you can install the pandoc-sidenote binary from my Homebrew tap:

brew install jez/formulae/pandoc-sidenote

From Source

Otherwise, you'll have to install from source. This project is written in Haskell and built using Stack. If you're new to Haskell, now's a perfect time to wet your toes! Go install Stack first, then run these commands:

git clone https://github.com/jez/pandoc-sidenote

cd pandoc-sidenote

# this is going to be reaaally long the first time
stack build

# copy the compiled binary onto your PATH
stack install

Notes to myself

Side note: I run this command to generate the zip files attached to releases that are downloaded by the Homebrew formula:

make

It would be nice to get GitHub Actions set up to build and publish releases for each tagged commit automatically.

I run this command to publish packages to Hackage:

# First, edit `package.yaml` to remove `-Werror`, then:

stack upload .

License

MIT License

More Repositories

1

vim-as-an-ide

Workshop on how to use Vim Plugins.
Vim Script
1,952
star
2

pandoc-starter

📄 My pandoc markdown templates and makefiles
TeX
525
star
3

as-tree

Print a list of paths as a tree of paths 🌳
Rust
454
star
4

tufte-pandoc-css

Starter files for using Pandoc Markdown with Tufte CSS
CSS
311
star
5

git-heatmap

📊 Display a heatmap for oft-edited files
Shell
292
star
6

vim-superman

Read Unix man pages faster than a speeding bullet!
Vim Script
190
star
7

pandoc-markdown-css-theme

CSS files and a template for using Pandoc to generate standalone HTML files
CSS
155
star
8

dotfiles

My personal collection of configuration files.
Shell
122
star
9

vim-better-sml

🎉 Enjoy writing SML within Vim
Vim Script
101
star
10

tufte-pandoc-jekyll

A Jekyll theme for using Tufte CSS with Jekyll + Pandoc
SCSS
66
star
11

git-madge

🚀 Git-aware madge wrapper
Shell
65
star
12

hpstr-theme

A Medium-like Octopress theme based on the HPSTR Jekyll theme.
CSS
63
star
13

tunemachine

🎶 A time machine for your Spotify tunes!
CoffeeScript
62
star
14

calz

📆 A natural language alternative to Unix 'cal'
Haskell
59
star
15

bask

😎 Bask in the convenience of a task runner for bash
Shell
58
star
16

vim-github-hub

A Vim filetype plugin for github/hub ⚡
Vim Script
49
star
17

latex-solarized

Provides three LaTeX packages for using the Solarized theme in LaTeX code listings.
TeX
29
star
18

stargaze

⭐ Gaze at repos you've starred
Shell
20
star
19

resume

My resume, written in XeTeX.
TeX
14
star
20

latex-hw-template

LaTeX template useful for formatting homework assignments
TeX
13
star
21

blog

an Octopress blog by Jake Zimmerman
Liquid
13
star
22

cmu-latex-hw-template

A LaTeX template for homework assignments, used widely at CMU.
TeX
12
star
23

pandoc-markdown-jekyll-theme

CSS
10
star
24

viewjrnl

Shell script to group jrnl entries by date and add color.
Shell
7
star
25

bin

My collection of personal scripts. They're not documented and often break. Ask if you have questions.
Shell
7
star
26

talks

💬 Slides and descriptions for talks I've given
TeX
6
star
27

starter-zshrc

You should really consider switching to zsh!
Shell
6
star
28

multi-sub

Substitute a pattern with a replacement on specific lines
OCaml
6
star
29

vim-ispc

Vim syntax highlighting for ISPC.
Vim Script
6
star
30

barchart

📊 Print a bar chart from the command line
Rust
5
star
31

ragel-bison-parser-sandbox

A small parser for the lambda calculus in C++ using Bazel, Ragel, and Bison
C++
5
star
32

cmd-queue

A simple queueing service for CMU students.
CoffeeScript
5
star
33

diff-locs

List the file locations involved in a diff
Haskell
5
star
34

smlnj-viscomp-example

An example of how to use SML/NJ's Visible Compiler APIs
Standard ML
4
star
35

symbol

🔨 A build tool for Standard ML
Shell
4
star
36

stlc-infer

A small interpretter for the simply typed lambda calculus, with type inference
Haskell
4
star
37

multi-grep

Search for a pattern on specific lines
Standard ML
3
star
38

tsim

A Turing machine simulator in SML
Standard ML
3
star
39

rust-lc-interp

Toy interpreter for the lambda calculus to explore Rust
Rust
2
star
40

auditors-webhook

Post commit review using Auditors
CoffeeScript
2
star
41

jez.github.io

A collection of my projects, contact info, and life.
CSS
2
star
42

google-apps-cmu-login

Bare bone demo of how to use Google OAuth2 with Python Social Auth in Django to authenticate by Andrew account.
Python
2
star
43

collate

Command line filter for collating the top and bottom halves of a file
Haskell
1
star
44

awkward-bun

Python
1
star
45

marauder

CSS
1
star
46

spacer

Blank macOS app to take up space
Rust
1
star
47

thoughts

A collection of some essays and longer-form writings.
CSS
1
star
48

flac-post-tag

Generate "post tag system" traces
Haskell
1
star
49

language-communities-on-github

TeX
1
star
50

th-portfolios

Simple app to coordinate uploading and downloading of resumes and profile information at TartanHacks 2014
JavaScript
1
star
51

as-tree-cpp

Print a list of paths as a tree of paths 🌳
Starlark
1
star
52

penndot-dash

A dashboard I designed for one of my class projects
1
star
53

homebrew-formulae

A Homebrew tap for my personal CLI tools
Ruby
1
star
54

JBooks

Java
1
star
55

jquery-lab

Simple game demo in jQuery to demonstrate some principles of frontend development.
JavaScript
1
star
56

vim-sorbet

Vim Script
1
star
57

collate-rs

Rust
1
star