Avoid block parser warning in SmartyPants (#6565)

Merge pull request 6565
This commit is contained in:
jekyllbot
2017-11-17 16:36:11 -05:00
committed by GitHub
parent 04f4e891f0
commit 2c646a304c
2 changed files with 16 additions and 1 deletions

View File

@@ -3,9 +3,14 @@
class Kramdown::Parser::SmartyPants < Kramdown::Parser::Kramdown
def initialize(source, options)
super
@block_parsers = [:block_html]
@block_parsers = [:block_html, :content]
@span_parsers = [:smart_quotes, :html_entity, :typographic_syms, :span_html]
end
def parse_content
add_text @src.scan(%r!\A.*\n!)
end
define_parser(:content, %r!\A!)
end
module Jekyll