Permalink
Browse files

Exploring some Redcarpet options

  • Loading branch information...
jarib committed Mar 21, 2013
1 parent 8a43f57 commit ffb34909708f7e0de7022ea0bcf902028d8c25c2
Showing with 7 additions and 5 deletions.
  1. +7 −5 Rakefile
View
@@ -5,11 +5,13 @@ directory 'build'
CLEAN << 'build'
task :default => :clean do
- markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
- autolink: true,
- space_after_headers: true,
- tables: true,
- fenced_code_blocks: true
+ # TODO: find a real solution for header/anchors
+ renderer = Redcarpet::Render::HTML.new(with_toc_data: true)
+ markdown = Redcarpet::Markdown.new(renderer,
+ autolink: true,
+ space_after_headers: true,
+ tables: true,
+ fenced_code_blocks: true
)
FileList['pages/**/*.md'].each do |source|

0 comments on commit ffb3490

Please sign in to comment.