blob: 7c8b165a330aef467a6b5c52fb19ba2566760761 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# frozen_string_literal: true
module Banzai
module Filter
class MermaidFilter < HTML::Pipeline::Filter
def call
doc.css('pre[lang="mermaid"] > code').add_class('js-render-mermaid')
doc
end
end
end
end
|