From f3f8ccdba456bb541ae812d8a79c0f7bbde2efdc Mon Sep 17 00:00:00 2001 From: Louis Taylor Date: Mon, 4 Nov 2024 08:25:47 +0000 Subject: [PATCH] Read devroom description from pretalx This parses the description as markdown, so people can use nicer formatting without allowing arbitrary html. --- layouts/schedule/track.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/schedule/track.html b/layouts/schedule/track.html index 0b508372..75c5018a 100644 --- a/layouts/schedule/track.html +++ b/layouts/schedule/track.html @@ -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 %>
- <%= description.compiled_content %> + <%= description %>
<% end %>