Some Markdown Renderers

个人知识库

Author: 刘杰文, Date: Unknown, Categories: , Tags: markdownmarkdown rendererkramdownredcarpetrdiscount

Some Markdown Renderers

Here introduce 3 renderer first:

  1. kramdown
  2. redcarpet
  3. rdiscount

There are some formats. View them here

kramdown

Github repo: https://github.com/gettalong/kramdown

kramdown introduction

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.

kramdown supported syntax

My words to say: It cannot render highlight syntax==. But <mark> HTML label should be supported. (Known from online information)

For quick reference, view this: https://kramdown.gettalong.org/quickref.html

Link: https://kramdown.gettalong.org/syntax.html

image-20221231195448093

redcarpet

Github repo: https://github.com/vmg/redcarpet

redcarpet introduction

Redcarpet is a Ruby library for Markdown processing that smells like butterflies and popcorn.

This library is written by people

Redcarpet was written by Vicent Martí. It is maintained by Robin Dupret and Matt Rogers.

Redcarpet would not be possible without the Sundown library and its authors (Natacha Porté, Vicent Martí, and its many awesome contributors).

redcarpet supported syntax

Some can be saw from repo’s README.

My words to say: It can highlight texts! (Known from online information)

rdiscount

Github repo: https://github.com/davidfstr/rdiscount/

Home Page: https://dafoster.net/projects/rdiscount/

Docs (i cant access it): https://rdoc.info/github/davidfstr/rdiscount/master/RDiscount

rdiscount introduction

rdiscount is the ruby extension of Discount processor. It uses the processor.

Discount is an implementation of John Gruber’s Markdown markup language in C. It implements all of the language described in the markdown syntax document and passes the Markdown 1.0 test suite.

Discount was developed by David Loren Parsons. The Ruby extension is maintained by David Foster.

image-20221231191029938

rdiscount supported syntax

My words to say: It cannot render highlight syntax==. But <mark> HTML label should be supported. (Known from online information)

These are supported by the supper, Discount processor. Link: https://daringfireball.net/projects/markdown/syntax

image-20221231190832538

Applications

Github Pages

Its default renderer is kramdown.