CommonMark generator for Jekyll used by GitHub Pages
Перейти к файлу
Yoann Chaudet 06c5dccd75
Merge pull request #37 from github/dependabot/bundler/commonmarker-gte-0.23.7-and-lt-1.2.0
Update commonmarker requirement from >= 0.23.7, < 1.1.0 to >= 0.23.7, < 1.2.0
2024-07-18 08:52:24 -07:00
.github
lib
script
spec
.gitignore
Gemfile
LICENSE
README.md
Rakefile
jekyll-commonmark-ghpages.gemspec Update commonmarker requirement from >= 0.23.7, < 1.1.0 to >= 0.23.7, < 1.2.0 2024-07-18 05:27:11 +00:00

README.md

jekyll-commonmark-ghpages

GitHub Flavored Markdown converter for Jekyll, based on jekyll-commonmark

Gem Version Build Status

Jekyll Markdown converter that uses libcmark-gfm, GitHub's fork of cmark, the reference parser for CommonMark, with some additions to ensure compatibility with existing Kramdown-based sites.

Installation

Add the following to your Gemfile:

group :jekyll_plugins do
  gem 'jekyll-commonmark-ghpages'
end

and modify your _config.yml to use CommonMarkGhPages as your Markdown converter:

markdown: CommonMarkGhPages

This processor is currently in testing for use in GitHub Pages.

To specify extensions and options for use in converting Markdown to HTML, supply options to the Markdown converter:

commonmark:
  options: ["UNSAFE", "SMART", "FOOTNOTES"]
  extensions: ["strikethrough", "autolink", "table", "tagfilter"]

⚠ The UNSAFE option is required for HTML rendering.