Skip to content

Commit

Permalink
Read devroom description from pretalx
Browse files Browse the repository at this point in the history
This parses the description as markdown, so people can use nicer
formatting without allowing arbitrary html.
  • Loading branch information
kragniz committed Nov 4, 2024
1 parent df77dbf commit f3f8ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/schedule/track.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@
<% end %>

<%
description = $item_by_id["/schedule/devrooms/#{item[:slug]}/"]
description = Kramdown::Document.new(item[:description], :auto_ids => false).to_html
if description
%>
<div class="well well-small track-description">
<%= description.compiled_content %>
<%= description %>
</div>
<% end %>

Expand Down

0 comments on commit f3f8ccd

Please sign in to comment.