Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commonmark: gfmExtensions needs to precede the defaultSyntaxSpec (#1000,#1001) #1003

Merged
merged 2 commits into from
Feb 11, 2022

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
2 participants