Unit test styling

This commit is contained in:
Nathan McCarty 2025-02-09 22:27:17 -05:00
parent 448908c18e
commit e4e0349a32
3 changed files with 38 additions and 0 deletions

View file

@ -11,6 +11,8 @@ sub show-html($html) is export {
$out ~~ s:g/'</i>' \v+ '<span>'/<\/i><span>/;
$out ~~ s:g/\v+ '</a>'/<\/a>/;
$out ~~ s:g/\s+ ',' \s+ '<span'/, <span/;
# Fixup unit test divs
$out ~~ s:g/'<div class="unit-test">' \s* '<pre><code class="idris-code">&nbsp;&nbsp;'/<div class="unit-test"><span><i class='bx bx-check-circle'><\/i>Unit Test<\/span><pre><code class="idris-code">/;
$out
}