mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Fix for full image spoiling (#11)
Sets the correct `class` for hiding images.
This commit is contained in:
parent
689ce5cd5a
commit
e23cb11b6e
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ defmodule FastTextile.Parser do
|
|||
defp bracketed_image(parser, [{:bracketed_image, img} | r_tokens], _state) do
|
||||
src = escape(parser.image_transform.(img))
|
||||
|
||||
{:ok, [{:markup, "<span class=\"imagespoiler\"><img src=\""}, {:markup, src}, {:markup, "\"/></span>"}], r_tokens}
|
||||
{:ok, [{:markup, "<span class=\"imgspoiler\"><img src=\""}, {:markup, src}, {:markup, "\"/></span>"}], r_tokens}
|
||||
end
|
||||
defp bracketed_image(_parser, _tokens, _state), do: {:error, "Expected a bracketed image"}
|
||||
|
||||
|
|
Loading…
Reference in a new issue