commonmark: Pure Haskell commonmark parser.
This library provides the core data types and functions for parsing commonmark (https://spec.commonmark.org). 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.
Related packages:
commonmark-extensions (which defines a number of syntax extensions)
commonmark-pandoc (which allows using this parser to create a Pandoc structure)
commonmark-cli (a command-line tool for converting and syntax-highlighting commonmark documents)
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- commonmark-0.1.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.1.4, 0.2, 0.2.1, 0.2.1.1, 0.2.2, 0.2.3, 0.2.4, 0.2.4.1, 0.2.5, 0.2.5.1, 0.2.6, 0.2.6.1 |
---|---|
Change log | changelog.md |
Dependencies | base (>=4.10 && <5), bytestring, containers, parsec, semigroups (>=0.18 && <0.19), text, transformers [details] |
License | BSD-3-Clause |
Copyright | 2018-2020 John MacFarlane |
Author | John MacFarlane |
Maintainer | jgm@berkeley.edu |
Revised | Revision 1 made by phadej at 2020-07-20T23:16:31Z |
Category | Text |
Home page | https://github.com/jgm/commonmark-hs |
Bug tracker | https://github.com/jgm/commonmark-hs/issues |
Source repo | head: git clone https://github.com/jgm/commonmark-hs |
Uploaded | by JohnMacFarlane at 2020-07-18T17:23:48Z |
Distributions | Arch:0.2.5.1, Fedora:0.2.6, LTSHaskell:0.2.6.1, NixOS:0.2.6.1, Stackage:0.2.6.1, openSUSE:0.2.6.1 |
Reverse Dependencies | 11 direct, 165 indirect [details] |
Downloads | 24943 total (53 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2020-07-18 [all 1 reports] |