Fix #4231: Allow artist commentary titles to be formatted with DText.

This commit is contained in:
evazion
2019-12-28 12:19:22 -06:00
parent c95108d37b
commit bb4be383b9
6 changed files with 41 additions and 43 deletions

View File

@@ -0,0 +1,15 @@
module ArtistCommentariesHelper
def format_commentary_title(title, classes: "")
tag.h3 do
tag.span(class: "prose #{classes}") do
format_text(title, disable_mentions: true, inline: true)
end
end
end
def format_commentary_description(description, classes: "")
tag.div(class: "prose #{classes}") do
format_text(description, disable_mentions: true)
end
end
end