diff --git a/.github/workflows/template.yml b/.github/workflows/template.yml index 84015e4d..c1e52b1b 100644 --- a/.github/workflows/template.yml +++ b/.github/workflows/template.yml @@ -44,7 +44,7 @@ jobs: - name: Install GitHub Pages, Bundler, and kramdown gems run: | - gem install github-pages bundler kramdown + gem install github-pages bundler kramdown kramdown-parser-gfm - name: Install Python modules run: | diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index cb67828c..df79f6c5 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -28,7 +28,7 @@ jobs: - name: Install GitHub Pages, Bundler, and kramdown gems run: | - gem install github-pages bundler kramdown + gem install github-pages bundler kramdown kramdown-parser-gfm - name: Install Python modules run: | diff --git a/bin/markdown_ast.rb b/bin/markdown_ast.rb index 4fdb6843..2ef3f772 100755 --- a/bin/markdown_ast.rb +++ b/bin/markdown_ast.rb @@ -4,9 +4,10 @@ # Use Kramdown parser to produce AST for Markdown document. require 'kramdown' +require 'kramdown-parser-gfm' require 'json' markdown = $stdin.read -doc = Kramdown::Document.new(markdown) +doc = Kramdown::Document.new(markdown, input: 'GFM', hard_wrap: false) tree = doc.to_hash_a_s_t puts JSON.pretty_generate(tree)