Skip to content

Commit

Permalink
fix toc renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Sep 7, 2012
1 parent fcc74b3 commit 75de700
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 91 deletions.
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ namespace :book do
task :build do
include Book
build(true)
#File.open("#{OUTPUT_DIR}/sinatra-book.html", "w") { |f| f.write(doc) }
end
end
4 changes: 2 additions & 2 deletions book.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module Book
OUTPUT_DIR = File.join(File.dirname(__FILE__), "output")

def build(pdf=false)
renderer = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
renderer = Redcarpet::Markdown.new(
Redcarpet::Render::HTML.new(:with_toc_data => true),
#:no_links => true,
:space_after_headers => true,
:with_toc_data => true,
:fenced_code_blocks => true)
toc_renderer = Redcarpet::Markdown.new(Redcarpet::Render::HTML_TOC)
doc = toc_renderer.render(complete_markdown(true))
Expand Down
88 changes: 0 additions & 88 deletions sinatra-book.thor

This file was deleted.

0 comments on commit 75de700

Please sign in to comment.