From cc43f1fc3d7901995d1ba06f2db5c659579ee977 Mon Sep 17 00:00:00 2001 From: Daan Smit Date: Wed, 3 Jul 2013 16:08:40 +0200 Subject: [PATCH] fixed unreachable submit tabs by disabling auto_ids in kramdown --- app/helpers/application_helper.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 5a51948b..3b8eaec6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -13,13 +13,14 @@ def page_done_icon(user, pset) def markdown(text, page_context) # pass public parl URL to the image converter # :image_prefix is defined in config/application.rb - Kramdown::Document.new(text, - :asset_prefix => page_context.public_url, - :cdn_prefix => Course.cdn, - :coderay_css => :class, - :coderay_tab_width => 4, - :enable_coderay => true, - :coderay_line_numbers => nil).to_custom_html.html_safe + Kramdown::Document.new(text, + :auto_ids => false, + :asset_prefix => page_context.public_url, + :cdn_prefix => Course.cdn, + :coderay_css => :class, + :coderay_tab_width => 4, + :enable_coderay => true, + :coderay_line_numbers => nil).to_custom_html.html_safe end def title()