Skip to content

Commit e439455

Browse files
committed
[new release] cmarkit (0.4.0+dune)
CHANGES: - Support for the CommonMark 0.31.2 specification (dune-universe/cmarkit#17). - Change task items extension semantics: the task marker is no longer considered part of the list marker. The new semantics can lead to surprises with item subparagraphs which can show up as indented code blocks, but it avoids huge indentations for subtasks and is consistent with what at least GFM and `md4c` do. Thanks to Thomas Gazagnaire for the report (dune-universe/cmarkit#24). - `Cmarkit_latex`. Add option `?first_heading_level` to the renderer to set the LaTeX heading level to use for the first CommonMark heading level. A corresponding option `--first-heading-level` is added to `cmarkit latex`. Thanks to Léo Andrès for the patch (dune-universe/cmarkit#16). - `cmarkit html` command: add option `--body-id` to identify page body elements. - `cmarkit` tool: install manpages and completions. - Less eager escaping of `#` characters in CommonMark renderings. Thanks to Thomas Gazagnaire for the report (dune-universe/cmarkit#25). - Less eager escaping of `.` and `)` characters in CommonMark rendering. Thanks to Ty Overby for the report (dune-universe/cmarkit#19). - Fix incorrect parsing of code spans if they start with an escaped backtick (dune-universe/cmarkit#21). - Fix incorrect escaping of backticks in CommonMark renderings (dune-universe/cmarkit#26). - Fix incorrect escaping of tildes for CommonMark rendering interpreted with extensions (strikethrough becomes code fence). Thanks to Tianyi Song for the report (dune-universe/cmarkit#20). - Fix `Cmarkit.Mapper`. Do not drop empty table cells. Thanks to Hannes Mehnert for the report (dune-universe/cmarkit#14). - Fix out of bounds exception when lists are terminated by the end of file. Thanks to Ty Overby for the report (dune-universe/cmarkit#18). - Fix invalid HTML markup generated for cancelled task items. Thanks to Sebastien Mondet for the report (dune-universe/cmarkit#15). - Fix misspelling of `--leading_l` variable in `cmarkit html`'s CSS file. - Updated data for Unicode 17.0.0. - Require (depopt) `cmdliner` 2.0.0.
1 parent 8e8ebb1 commit e439455

File tree

1 file changed

+49
-0
lines changed
  • packages/cmarkit/cmarkit.0.4.0+dune

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
opam-version: "2.0"
2+
synopsis: "CommonMark parser and renderer for OCaml"
3+
description: """\
4+
Cmarkit parses the [CommonMark specification]. It provides:
5+
6+
- A CommonMark parser for UTF-8 encoded documents. Link label resolution
7+
can be customized and a non-strict parsing mode can be activated to add:
8+
strikethrough, LaTeX math, footnotes, task items and tables.
9+
10+
- An extensible abstract syntax tree for CommonMark documents with
11+
source location tracking and best-effort source layout preservation.
12+
13+
- Abstract syntax tree mapper and folder abstractions for quick and
14+
concise tree transformations.
15+
16+
- Extensible renderers for HTML, LaTeX and CommonMark with source
17+
layout preservation.
18+
19+
Cmarkit is distributed under the ISC license. It has no dependencies.
20+
21+
[CommonMark specification]: https://spec.commonmark.org/
22+
23+
Homepage: <https://erratique.ch/software/cmarkit>"""
24+
maintainer: "Daniel Bünzli <daniel.buenzl [email protected]>"
25+
authors: "The cmarkit programmers"
26+
license: "ISC"
27+
tags: ["codec" "commonmark" "markdown" "org:erratique"]
28+
homepage: "https://github.com/dune-universe/cmarkit"
29+
bug-reports: "https://github.com/dbuenzli/cmarkit/issues"
30+
depends: [
31+
"ocaml" {>= "4.14.0"}
32+
"dune"
33+
]
34+
depopts: ["cmdliner"]
35+
conflicts: [
36+
"cmdliner" {< "2.0.0"}
37+
]
38+
build: [ "dune" "build" "-p" name "-j" jobs ]
39+
dev-repo: "git+https://github.com/dune-universe/cmarkit.git"
40+
x-maintenance-intent: ["(latest)"]
41+
url {
42+
src:
43+
"https://github.com/dune-universe/cmarkit/releases/download/v0.4.0%2Bdune/cmarkit-0.4.0.dune.tbz"
44+
checksum: [
45+
"sha256=b085c28336e9483689d3846241547646a263fb9d3907f4ebeb262aaa11783ee2"
46+
"sha512=162b18312c5e7fac057bec0d7181657a1ad8d40ac6e7ca86f089e72f7e6470774db6a83e78f74b2f4d77465e8918fb76c9d0f28dc0721a0274e7b3df5078c02f"
47+
]
48+
}
49+
x-commit-hash: "a1411015d5fb39f0b7fa434f958e03bed6051882"

0 commit comments

Comments
 (0)