Commit 7e880cfd authored by Guillaume Grossetie's avatar Guillaume Grossetie

Rubocop happiness

parent 7a15189f
......@@ -18,12 +18,13 @@ module Banzai
.join(', ')
def call
# if PlantUML is enabled, PlantUML diagrams will be processed by the PlantUML filter.
diagram_selectors = if settings.plantuml_enabled
# if PlantUML is enabled, PlantUML diagrams will be processed by the PlantUML filter.
DIAGRAM_SELECTORS_WO_PLANTUML
else
DIAGRAM_SELECTORS
end
return doc unless settings.kroki_enabled && doc.at(diagram_selectors)
diagram_format = "svg"
......
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