Merge pull request 'add markdown snippet for images' (#156) from devel into main
Reviewed-on: #156
This commit is contained in:
commit
e4f5038780
2 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,8 @@
|
||||||
src={ChiyaWeb.Uploaders.NoteImage.url({@image.path, @image}, :full_dithered)}
|
src={ChiyaWeb.Uploaders.NoteImage.url({@image.path, @image}, :full_dithered)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<pre>![<%= image.content %>](<%= ChiyaWeb.Uploaders.NoteImage.url({@image.path, @image}, :full_dithered) %>)</pre>
|
||||||
|
|
||||||
<.simple_form
|
<.simple_form
|
||||||
:let={f}
|
:let={f}
|
||||||
for={@changeset}
|
for={@changeset}
|
||||||
|
|
|
@ -35,6 +35,10 @@
|
||||||
<%= Markdown.render(@note.content) |> raw %>
|
<%= Markdown.render(@note.content) |> raw %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<footer class="mt-8 mx-auto max-w-xl">
|
||||||
|
<a href={~p"/note/#{note.slug}" class="u-url u-uid"}>Permalink</a>
|
||||||
|
</footer>
|
||||||
|
|
||||||
<section class="mt-8 mx-auto max-w-xl">
|
<section class="mt-8 mx-auto max-w-xl">
|
||||||
<%= if !Enum.empty?(@note.images) do %>
|
<%= if !Enum.empty?(@note.images) do %>
|
||||||
<.line />
|
<.line />
|
||||||
|
|
Loading…
Reference in a new issue