mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
your mom's instrument
This commit is contained in:
parent
670242bc13
commit
8f6f56b0e7
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
defmodule PhilomenaWeb.TextileMarkdownRenderer do
|
defmodule PhilomenaWeb.TextileMarkdownRenderer do
|
||||||
alias Philomena.Textile.ParserMarkdown
|
alias Philomena.Textile.ParserMarkdown
|
||||||
|
|
||||||
def render_one(post, conn) do
|
def render_one(post) do
|
||||||
hd(render_collection([post], conn))
|
hd(render_collection([post]))
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_collection(posts, conn) do
|
def render_collection(posts) do
|
||||||
opts = %{image_transform: &Camo.Image.image_url/1}
|
opts = %{image_transform: &Camo.Image.image_url/1}
|
||||||
parsed = Enum.map(posts, &ParserMarkdown.parse(opts, &1.body))
|
parsed = Enum.map(posts, &ParserMarkdown.parse(opts, &1.body))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue