ghc-commonmark
Pure Haskell Commonmark parser
This library provides the core data types and functions for parsing Commonmark. The parser is fully Commonmark-compliant and passes the test suite. It is designed to be customizable and easily extensible. To customize the output, create an AST, or support a new output format, one need only define some new typeclass instances. It is also easy to add new syntax elements or modify existing ones.
Accurate information about source positions is available for all block and inline elements. Thus the library can be used to create an accurate syntax highlighter or an editor with live preview. The parser has been designed for robust performance even in pathological cases that tend to cause stack overflows or exponential slowdowns in other parsers, with parsing speed that varies linearly with input length.
- Versions: 0.2.2
- Website: https://github.com/jgm/commonmark-hs
- Licenses: Modified BSD
- Package source: gnu/packages/haskell-xyz.scm
- Builds: See build status
- Issues: See known issues
Installation
Install the latest version of ghc-commonmark
as follows:
guix install ghc-commonmark
Or install a particular version:
guix install ghc-commonmark@0.2.2
You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell
documentation for more information.
Badge code
You can use the following badge to inform users of ghc-commonmark about the latest version available in Guix.
Example HTML:
<a href='https://packages.guix.gnu.org/packages/ghc-commonmark'><img src='https://packages.guix.gnu.org/packages/ghc-commonmark/badges/latest-version.svg' alt='Version in GNU Guix'></a>
Example Markdown:
[](https://packages.guix.gnu.org/packages/ghc-commonmark)
Example Org:
[[https://packages.guix.gnu.org/packages/ghc-commonmark][https://packages.guix.gnu.org/packages/ghc-commonmark/badges/latest-version.svg]]