14 lines
283 B
Ruby
14 lines
283 B
Ruby
![]() |
module Banzai
|
||
|
module Filter
|
||
|
class AsciiDocPostProcessingFilter < HTML::Pipeline::Filter
|
||
|
def call
|
||
|
doc.search('[data-math-style]').each do |node|
|
||
|
node.set_attribute('class', 'code math js-render-math')
|
||
|
end
|
||
|
|
||
|
doc
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|