Skip to content

Commit

Permalink
fixed unreachable submit tabs by disabling auto_ids in kramdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Daan Smit committed Jul 3, 2013
1 parent f3e4d3f commit cc43f1f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cc43f1f

Please sign in to comment.