Fix bug in IAL detection in maruku/ext/div.rb
This commit is contained in:
parent
34082fbf94
commit
da81a2fbdb
13
vendor/plugins/maruku/lib/maruku/ext/div.rb
vendored
13
vendor/plugins/maruku/lib/maruku/ext/div.rb
vendored
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
OpenDiv = /^[ ]{0,3}\+\-\-+\s*([^\s-]*)\s*\-*\s*$/
|
||||
CloseDiv = /^[ ]{0,3}\=\-\-+\s*([^\s-]*)\s*\-*\s*$/
|
||||
OpenDiv = /^[ ]{0,3}\+\-\-+\s*(.*)$/
|
||||
CloseDiv = /^[ ]{0,3}\=\-\-+\s*(.*)$/
|
||||
StartPipe = /^[ ]{0,3}\|(.*)$/ # $1 is rest of line
|
||||
DecorativeClosing = OpenDiv
|
||||
|
||||
|
@ -67,11 +67,12 @@ MaRuKu::In::Markdown::register_block_extension(
|
|||
al_string = ial_at_beginning || ial_at_end
|
||||
al = nil
|
||||
|
||||
if al_string =~ /^\{(.*)\}$/
|
||||
if al_string =~ /^\{(.*)\}\s*$/
|
||||
inside = $1
|
||||
cs = MaRuKu::In::Markdown::SpanLevelParser::CharSource
|
||||
al = al_string &&
|
||||
doc.read_attribute_list(cs.new(inside), its_context=nil, break_on=[nil])
|
||||
# al = al_string &&
|
||||
# doc.read_attribute_list(cs.new(inside), its_context=nil, break_on=[nil])
|
||||
al = doc.read_attribute_list(cs.new(inside), its_context=nil, break_on=[nil])
|
||||
end
|
||||
|
||||
src = MaRuKu::In::Markdown::BlockLevelParser::LineSource.new(lines)
|
||||
|
@ -97,4 +98,4 @@ module MaRuKu; module Out; module HTML
|
|||
add_ws wrap_as_element('div')
|
||||
end
|
||||
|
||||
end end end
|
||||
end end end
|
||||
|
|
Loading…
Reference in a new issue