mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-29 00:12:38 +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'])
|
annotation = semantics.children.find(&is_annotation_with_encoding.curry['application/x-tex'])
|
||||||
if annotation
|
if annotation
|
||||||
text = if math.attributes['display']&.value == 'block'
|
text = if math.attributes['display']&.value == 'block'
|
||||||
"$$#{annotation.text}$$"
|
"$$#{annotation.text}$$"
|
||||||
else
|
else
|
||||||
"$#{annotation.text}$"
|
"$#{annotation.text}$"
|
||||||
end
|
end
|
||||||
math.replace(Nokogiri::XML::Text.new(text, math.document))
|
math.replace(Nokogiri::XML::Text.new(text, math.document))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue