Skip to content

Commit

Permalink
Merge pull request #347 from Xliff/master
Browse files Browse the repository at this point in the history
- Process code in between ```...``` markdown tags.
  • Loading branch information
AlexDaniel committed Aug 26, 2019
2 parents c0646d9 + 4d49f92 commit 889b1e8
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 889b1e8

Please sign in to comment.