Skip to content

Replace GFM Parser (redcarpet) with cmark

Description

Other repo services have begun to use cmark to parse markdown files (README, LICENSE, Documentation, Wiki, etc.). For example, GitHub now uses cmark to render markdown as per https://githubengineering.com/a-formal-spec-for-github-markdown/. Atlassian also uses cmark to render markdown as per https://github.com/atlassian/commonmark-java.

Non-GitHub features will have to be reimplemented, like Video, Math, and others.

Proposal

  • Replace redcarpet with cmark
  • Implement some features using GitHub's fork
  • Bring over other features from GitLab/redcarpet to cmark

Links / references