Skip to content

Commit

Permalink
Don't treat numbered lists as headers
Browse files Browse the repository at this point in the history
If we see

bhollis#1 blah
bhollis#2 blah
bhollis#3 blah

..leave it alone
  • Loading branch information
outcassed committed Oct 14, 2017
1 parent b69f795 commit f0abbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/maruku/input/mdline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def line_md_type
return :raw_html if self =~ /\A[ ]{0,3}<\!\-\-/
return :header1 if self =~ /\A(=)+/
return :header2 if self =~ /\A([-\s])+\z/
return :header3 if self =~ /\A(#)+\s*\S+/
return :header3 if self =~ /\A(#)+\s*\S+/ && !(self =~ /\A(#)+\d+\s+/)
# at least three asterisks/hyphens/underscores on a line, and only whitespace
return :hrule if self =~ /\A(\s*[\*\-_]\s*){3,}\z/
return :ulist if self =~ /\A[ ]{0,3}([\*\-\+])\s+.*/
Expand Down

0 comments on commit f0abbf1

Please sign in to comment.