Skip to content

Commit

Permalink
Refactoring divider parser to single line
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtis Rainbolt-Greene committed Jan 9, 2012
1 parent ba6e219 commit 64e9cc5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rocco.rb
Expand Up @@ -380,8 +380,7 @@ def highlight(blocks)
# dividers and run through the Markdown processor. Then split it back out
# into separate sections.
markdown = docs_blocks.join("\n\n##### DIVIDER\n\n")
docs_html = process_markdown(markdown).
split(/\n*<h5>DIVIDER<\/h5>\n*/m)
docs_html = process_markdown(markdown).split(/\n*<h5>DIVIDER<\/h5>\n*/m)

# Combine all code blocks into a single big stream with section dividers and
# run through either `pygmentize(1)` or <http://pygments.appspot.com>
Expand Down

0 comments on commit 64e9cc5

Please sign in to comment.