mmark-ext-0.2.1.2: Commonly useful extensions for the MMark markdown processor

Copyright© 2018–2019 Mark Karpov
LicenseBSD 3 clause
MaintainerMark Karpov <markkarpov92@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.MMark.Extension.Footnotes

Description

An extension to add footnotes to your documents.

Since: 0.1.1.0

Synopsis

Documentation

footnotes :: Extension Source #

The extension performs two transformations:

  • It turns links with URIs with footnote scheme and single path piece consisting of a number into links to footnote references.
  • It turns block quotes with the "footnotes" label (see the example below) into a footnote section.
Here goes some text [1](footnote:1).

> footnotes

  1. Here we have the footnote.

The extension is not fully safe though in the sense that we can't check that a footnote reference refers to an existing footnote and that footnotes have corresponding references, or that they are present in the document in the right order.