Skip to content

Commit

Permalink
split paragraphs in blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcallister committed Nov 23, 2024
1 parent 3925633 commit 2d9f5b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/article/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h1><%= @article.name %></h1>
<p><%= l(@article.created_at, format: :long) %></p>
<p><%= @article.content %></p>
<% @article.content.split("\n\n").each do |paragraph| %>
<p><%= paragraph %></p>
<% end %>

0 comments on commit 2d9f5b2

Please sign in to comment.