Update mention_html formatter again.
This commit is contained in:
parent
8d9db14121
commit
b705c82304
|
@ -19,11 +19,11 @@ class HTMLRenderer < Redcarpet::Render::HTML
|
||||||
def double_emphasis(text)
|
def double_emphasis(text)
|
||||||
"<strong>#{text}</strong>"
|
"<strong>#{text}</strong>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def emphasis(text)
|
def emphasis(text)
|
||||||
"<em>#{text}</em>"
|
"<em>#{text}</em>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def header(text, header_level)
|
def header(text, header_level)
|
||||||
"<h1>#{text}</h1>"
|
"<h1>#{text}</h1>"
|
||||||
end
|
end
|
||||||
|
@ -31,15 +31,15 @@ class HTMLRenderer < Redcarpet::Render::HTML
|
||||||
def paragraph(text)
|
def paragraph(text)
|
||||||
"<p>#{text}</p>"
|
"<p>#{text}</p>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def triple_emphasis(text)
|
def triple_emphasis(text)
|
||||||
"<b><em>#{text}</em></b>"
|
"<b><em>#{text}</em></b>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def strikethrough(text)
|
def strikethrough(text)
|
||||||
"<del>#{text}</del>"
|
"<del>#{text}</del>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def underline(text)
|
def underline(text)
|
||||||
"<u>#{text}</u>"
|
"<u>#{text}</u>"
|
||||||
end
|
end
|
||||||
|
@ -53,7 +53,7 @@ class HTMLRenderer < Redcarpet::Render::HTML
|
||||||
content
|
content
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def list_item(text, list_type)
|
def list_item(text, list_type)
|
||||||
"<li>#{text}</li>"
|
"<li>#{text}</li>"
|
||||||
end
|
end
|
||||||
|
@ -481,8 +481,8 @@ class Formatter
|
||||||
end
|
end
|
||||||
|
|
||||||
def mention_html(account)
|
def mention_html(account)
|
||||||
return "<span>@#{encode(account.acct)}</span>" unless account.local?
|
# return "<span>@#{encode(account.acct)}</span>" unless account.local?
|
||||||
"<a data-focusable=\"true\" role=\"link\" href=\"#{encode(TagManager.instance.url_for(account))}\" class=\"u-url mention\">@#{encode(account.acct)}</a>"
|
"<a data-focusable=\"true\" role=\"link\" href=\"#{encode(TagManager.instance.url_for(account))}\" class=\"u-url mention\">@#{encode(account.acct)}</a>"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue