mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 07:05:20 +00:00
fix lint
This commit is contained in:
parent
224192d4ab
commit
736d50c62a
|
@ -89,10 +89,10 @@ class Sanitize
|
|||
annotation = semantics.children.find(&is_annotation_with_encoding.curry['application/x-tex'])
|
||||
if annotation
|
||||
text = if math.attributes['display']&.value == 'block'
|
||||
"$$#{annotation.text}$$"
|
||||
else
|
||||
"$#{annotation.text}$"
|
||||
end
|
||||
"$$#{annotation.text}$$"
|
||||
else
|
||||
"$#{annotation.text}$"
|
||||
end
|
||||
math.replace(Nokogiri::XML::Text.new(text, math.document))
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue