diff options
author | Brett Walker <bwalker@gitlab.com> | 2018-09-11 12:21:24 -0500 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2018-09-11 12:41:12 -0500 |
commit | 0b9365b6ef45285d59a4bb7ab12d5c44723aa9c8 (patch) | |
tree | 6997b305b10c14ef701d0836a72a365272196745 | |
parent | 1254f226564a22dfb87c71674e18a4af5b021711 (diff) | |
download | gitlab-ce-0b9365b6ef45285d59a4bb7ab12d5c44723aa9c8.tar.gz |
Updated commonmarker gem to 0.17.13
-rw-r--r-- | Gemfile.lock | 2 | ||||
-rw-r--r-- | spec/lib/banzai/filter/markdown_filter_spec.rb | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index 8c545b7257c..0832fe25711 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -125,7 +125,7 @@ GEM coderay (1.1.2) coercible (1.0.0) descendants_tracker (~> 0.0.1) - commonmarker (0.17.8) + commonmarker (0.17.13) ruby-enum (~> 0.5) concord (0.1.5) adamantium (~> 0.2.0) diff --git a/spec/lib/banzai/filter/markdown_filter_spec.rb b/spec/lib/banzai/filter/markdown_filter_spec.rb index a515d07b072..f4149036e1a 100644 --- a/spec/lib/banzai/filter/markdown_filter_spec.rb +++ b/spec/lib/banzai/filter/markdown_filter_spec.rb @@ -60,4 +60,21 @@ describe Banzai::Filter::MarkdownFilter do end end end + + describe 'footnotes in tables' do + it 'processes footnotes in table cells' do + text = <<-MD.strip_heredoc + | Column1 | + | --------- | + | foot [^1] | + + [^1]: a footnote + MD + + result = filter(text) + + expect(result).to include('<td>foot <sup') + expect(result).to include('<section class="footnotes">') + end + end end |