Skip to content

Instantly share code, notes, and snippets.

Created Dec 2, 2017
What would you like to do?
Extract heading from a markdown-marked letter
use v6;
use Text::Markdown;
sub MAIN( Str $letter-to-santa = 'letters/' ) {
my $letter =$letter-to-santa.IO.slurp());
say so $letter.items.grep( { $^þ ~~ Text::Markdown::Heading } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment