Commit 7fb417cf authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'bw-commonmark-spec' into 'master'

Add spec for markdown language parameters

See merge request gitlab-org/gitlab!47926
parents cfad9f2c ee8f8b75
...@@ -46,6 +46,12 @@ RSpec.describe Banzai::Filter::MarkdownFilter do ...@@ -46,6 +46,12 @@ RSpec.describe Banzai::Filter::MarkdownFilter do
expect(result).to start_with('<pre><code lang="日">') expect(result).to start_with('<pre><code lang="日">')
end end
it 'works with additional language parameters' do
result = filter("```ruby:red gem\nsome code\n```", no_sourcepos: true)
expect(result).to start_with('<pre><code lang="ruby:red gem">')
end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment