lib/makeup/code_block_parser.rb in makeup-0.2.0 vs lib/makeup/code_block_parser.rb in makeup-0.3.0
- old
+ new
@@ -61,10 +61,10 @@
def starts_code_block?(line)
line.match(/^```.*/)
end
def closes_code_block?(line)
- active_code_block? && line == "```"
+ active_code_block? && line.match(/^```/)
end
def start_code_block(line)
m = line.match(/```([^\s]+)/)
@current_code_bock = [m && m[1], []]