lib/kramdown/parser/github_markdown/github_codeblock.rb in gitdown-0.0.1 vs lib/kramdown/parser/github_markdown/github_codeblock.rb in gitdown-0.0.2

- old
+ new

@@ -27,10 +27,10 @@ module Kramdown module Parser class GithubMarkdown GITHUB_CODEBLOCK_START = /^```/ - GITHUB_CODEBLOCK_MATCH = /^```([^\s]*)?\s*?\n(.*?)^```\s*\n/m + GITHUB_CODEBLOCK_MATCH = /^```([^\s]*)?\s*?\n(.*?)^```[\ \t]*\n/m # Parse the indented codeblock at the current location. def parse_github_codeblock data = @src.scan(self.class::GITHUB_CODEBLOCK_MATCH) matches = data.match GITHUB_CODEBLOCK_MATCH