./textproc/hs-commonmark, Pure Haskell commonmark parser

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.2.6nb1, Package name: hs-commonmark-0.2.6nb1, Maintainer: pho

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.


Required to run:
[textproc/hs-unicode-transforms] [textproc/hs-unicode-data] [lang/ghc94]

Master sites:

Filesize: 101.779 KB

Version history: (Expand)


CVS history: (Expand)


   2024-05-09 03:32:57 by Masatake Daimon | Files touched by this commit (1137)
Log message:
Recursive revbump after changing the default Haskell compiler
   2024-04-29 04:47:41 by Masatake Daimon | Files touched by this commit (4)
Log message:
textproc/hs-commonmark: Update to 0.2.6

0.2.6
* Make list tightness match the reference implementation closer (#150,
  Michael Howell). This solves the problem where blank lines in the middle
  of a list are attributed to the list itself instead of the item, making
  its parent list become spuriously loose.
* Fix bug with entities inside link destinations (#149). The bug affects
  cases like this: [link](\!); the backslash escape was being ignored
  here.
* Commonmark.Entity: export pEntity [API change].

0.2.5.1
* Replace source with search in list of block tags. This is a spec 0.31
  change that was forgotten in the last release.

0.2.5
* Fix HTML comment parser to conform to 0.31.2 spec.
* Update spec.txt tests to commonmark-spec 0.31.2.
* Match HTML declaration blocks with lowercase letters (Michael Howell).
* Specifically track the position where enders end (Michael Howell).

0.2.4.1
* Commonmark.Html: Add aria-hidden, d, and viewBox to allowed attributes
  list.
* Correctly merge list blanks with non-list blanks (#133, Michael Howell).
* Do not look for backslashed hard breaks in link titles (#130, Michael
  Howell).
* Work around ghc bug with -K RTS options, to set the stack space properly
  for tests (#129). See https://gitlab.haskell.org/ghc/ghc/-/issues/10445.
* Revert block state completely if lazy line (#126). This fixes an issue
  with lazily-wrapped footnotes.
* Avoid adding trailing newline to list block if it's already there
  (Michael Howell). This fixes tight/loose classification in a few cases.
* Fix incorrectly parsing links with nested [] (Michael Howell).
   2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141)
Log message:
Revbump all Haskell after updating lang/ghc96
   2023-10-28 11:52:23 by Masatake Daimon | Files touched by this commit (3)
Log message:
textproc/hs-commonmark: Update to 0.2.4

0.2.4
* Do not parse hard line breaks in fenced codeblock info (#116, Michael
  Howell). This change makes commonmark-hs conform to the spec and behave
  like other implementations when an info string in a code block ends with
  a backslash.
* [API change] Commonmark.Inlines now exports pEscapedSymbol (#116, Michael
  Howell).
* Tokenize combining marks as WordChars not Symbol (#114).
   2023-10-26 19:18:54 by Masatake Daimon | Files touched by this commit (4)
Log message:
textproc/hs-commonmark: Update to 0.2.3

0.2.3
* Re-export Text.Parsec.Pos from Commonmark.Types (Fraser Tweedale, #106).
   2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988)
Log message:
Bump Haskell packages after updating lang/ghc94
   2023-01-25 04:43:29 by Masatake Daimon | Files touched by this commit (4)
Log message:
textproc/hs-commonmark: 0.2.2

0.2.2
* Blocks: export getParentListType [API change].
* Require unicode-data >= 0.3.
* Change mkFormattingSpecMap so it integrates different FormattingSpecs
  that use the same character (#87). Otherwise we have problems if you have
  one formatting spec that reacts to single delimiters and another that
  reacts to pairs; if the first fails to match, the fallback behavior is
  produced and the second never matches.
* Use unicode-data's faster versions of Data.Char functions. This speeds up
  benchmarks for tokenize considerably; little difference in other
  benchmarks. unicode-data is already a transitive dependency, via
  unicode-transforms.
* Increase strictness in tokenize/go.
* Remove legacy cpp needed to support ghc < 8.4.
   2022-02-26 04:58:36 by Masatake Daimon | Files touched by this commit (872)
Log message:
Bump all Haskell packages after enabling "split sections" in mk/haskell.mk