Skip to content

Conversation

@andreasabel
Copy link
Member

Commonmark: gfmExtensions needs to precede the defaultSyntaxSpec.

  • Move gfmExtensions before defaultSyntaxSpec.

  • Require commonmark-extensions-0.2.2 so footnoteSpec is subsumed under gfmExtensions.
    (Note: this version bump does not exclude any GHC versions.)

  • Generalize renderMarkdown and renderMarkdownRel to renderMarkdown'. We use a constraint synonym to gather all the constraints on type a, using LANGUAGE ConstraintKinds.

  • Haddockumentation for all functions.

  • Explicit export list.

Hopefully this will fix #1000 and fix #1001, but renderMarkdown has no tests, so I cannot see the effect of my change locally.

This import is not needed since we require GHC >= 8.8.
#1001)

- Move `gfmExtensions` before `defaultSyntaxSpec`.

- Require commonmark-extensions-0.2.2 so `footnoteSpec` is subsumed
  under `gfmExtensions`.
  (Note: this version bump does not exclude any GHC versions.)

- Generalize `renderMarkdown` and `renderMarkdownRel` to
  `renderMarkdown'`.  We use a constraint synonym to gather
  all the constraints on type `a`, using `LANGUAGE ConstraintKinds`.

- Haddockumentation for all functions.

- Explicit export list.

Hopefully this will fix #1000 and #1001, but `renderMarkdown` has no
tests, so I cannot see the effect of my change locally.
@gbaz gbaz merged commit 3df4784 into master Feb 11, 2022
@andreasabel andreasabel deleted the gfm-markdown branch February 11, 2022 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Email address detection in markdown faulty Plain http(s)-links in markdown not rendered

3 participants