mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-05 20:25:00 -05:00
Avoid block parser warning in SmartyPants (#6565)
Merge pull request 6565
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user