File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -523,12 +523,12 @@ Para = @NonindentSpace Inlines:a @BlankLine+
523
523
Plain = Inlines:a
524
524
{ paragraph a }
525
525
526
- AtxInline = !@Newline !(@Sp? /#*/ @Sp @Newline) Inline
526
+ AtxInline = !@Newline !(@Sp /#*/ @Sp @Newline) Inline
527
527
528
528
AtxStart = < /\#{1,6}/ >
529
529
{ text.length }
530
530
531
- AtxHeading = AtxStart:s @Sp? AtxInline+:a (@Sp? /#*/ @Sp)? @Newline
531
+ AtxHeading = AtxStart:s @Sp AtxInline+:a (@Sp /#*/ @Sp)? @Newline
532
532
{ RDoc::Markup::Heading.new(s, a.join) }
533
533
534
534
SetextHeading = SetextHeading1 | SetextHeading2
@@ -538,12 +538,12 @@ SetextBottom1 = /={1,}/ @Newline
538
538
SetextBottom2 = /-{1,}/ @Newline
539
539
540
540
SetextHeading1 = &(@RawLine SetextBottom1)
541
- @StartList:a ( !@Endline Inline:b { a << b } )+ @Sp? @Newline
541
+ @StartList:a ( !@Endline Inline:b { a << b } )+ @Sp @Newline
542
542
SetextBottom1
543
543
{ RDoc::Markup::Heading.new(1, a.join) }
544
544
545
545
SetextHeading2 = &(@RawLine SetextBottom2)
546
- @StartList:a ( !@Endline Inline:b { a << b })+ @Sp? @Newline
546
+ @StartList:a ( !@Endline Inline:b { a << b })+ @Sp @Newline
547
547
SetextBottom2
548
548
{ RDoc::Markup::Heading.new(2, a.join) }
549
549
You can’t perform that action at this time.
0 commit comments