Checkpoint draft

This commit is contained in:
Nathan McCarty 2025-07-09 20:00:02 -04:00
parent 63ca0df679
commit 1553ec320b
7 changed files with 228 additions and 2 deletions

View file

@ -81,7 +81,7 @@ sub katla(*@args --> Str:D) {
unless $katla;
# Modify the output to use our styling instead of katla's
# Remove the style block and line breaks
$katla-out ~~ s:g/'<style>' .* '</style>'//;
$katla-out ~~ s:g/'<style>' <-[ < ]>* '</style>'//;
$katla-out ~~ s:g/'<br />'//;
# Use <pre> blocks for the code and inject our own class for idris code
$katla-out ~~ s:g/'<code class="' \w+ '">' \s*/<pre><code class="idris-code">/;