Skip to content

Commit

Permalink
- Process code in between ... markdown tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xliff committed Feb 18, 2019
1 parent 43a4e48 commit 4d49f92
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Whateverable/Processing.pm6
Expand Up @@ -124,6 +124,16 @@ sub process-gist($url, $msg) is export {
} else {
spurt $path, .<content>;
}

if .<filename>.ends-with('.md') {
if .<contents> ~~ /'```' [ 'perl' 6? ] ~ '```' (.+) / {
.<contents> = $/[0];
}
if .<contents> ~~ /"```" \s* "\n" ~ '```' (.+) / {
.<contents> = $/[0];
}
}

%scores.push: .<filename> => $score
}

Expand Down

0 comments on commit 4d49f92

Please sign in to comment.