diff --git a/src/parser/actions.pm b/src/parser/actions.pm index bf2de5c..43b46f7 100644 --- a/src/parser/actions.pm +++ b/src/parser/actions.pm @@ -44,7 +44,7 @@ method Heading($/, $key) { } method AtxHeading($/) { - my $mast := Markdown::Title.new( :level( ~$.length() ) ); + my $mast := Markdown::Title.new( :level( $.length() ) ); for $ { $mast.push( $_.ast() ); } @@ -131,7 +131,7 @@ method BlockQuoteNextLine($/) { } method Line($/) { - make Markdown::Line.new( :text( ~$[0] ) ); + make Markdown::Line.new( :text( $[0].Str() ) ); } method BlankLine($/) { @@ -139,7 +139,7 @@ method BlankLine($/) { } method NonblankIndentedLine($/) { - make Markdown::Line.new( :text( ~$.Str() ), + make Markdown::Line.new( :text( $.Str() ), :detab( 1 ) ); } @@ -319,7 +319,7 @@ method ReferenceLink($/, $key) { } method ReferenceLinkDouble($/) { - my $mast := Markdown::RefLink.new( :key( ~$