mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 15:31:52 +00:00
fix lint
This commit is contained in:
parent
ef36989620
commit
5ac279fd65
|
@ -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 New Issue
Block a user