Class: Banzai::Filter::MermaidFilter

Inherits:
HTML::Pipeline::Filter
  • Object
show all
Defined in:
lib/banzai/filter/mermaid_filter.rb

Instance Method Summary collapse

Instance Method Details

#callObject


7
8
9
10
11
# File 'lib/banzai/filter/mermaid_filter.rb', line 7

def call
  doc.css('pre[lang="mermaid"] > code').add_class('js-render-mermaid')

  doc
end