Commit ee8f8b75 authored by Brett Walker's avatar Brett Walker

Add spec for language parameters

parent 2baf662c
......@@ -46,6 +46,12 @@ RSpec.describe Banzai::Filter::MarkdownFilter do
expect(result).to start_with('<pre><code lang="日">')
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
......
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