diff --git a/noter.sh b/noter.sh index 9c4cc4f..f10ce8c 100755 --- a/noter.sh +++ b/noter.sh @@ -1,5 +1,5 @@ #!/bin/bash -# noter 1.1.2 - "fuck fever" - @k@layer8.space - mit +# noter 1.1.5 - "tired tire tried" - @k@layer8.space - mit nlog() { local ORANGE='\033[0;33m' @@ -31,9 +31,15 @@ givefavicon() { } generate_note_html() { + # NOTE TO SELF: Figure out parsing html blocks (ie: ) so that we can apply styles for whole + # elements instead of doing what we're doing right now... local note_date="$(date -d "$(basename "$1" .txt)" +"%B %d, %Y")" for img in $(grep -oP '(?<=" echo "
" @@ -107,6 +113,11 @@ echo " color: #fff; white-space: pre-wrap; } + code { + color: orange !important; + font-family: 'Courier New', monospace; + white-space: pre-wrap; + } .back-to-top { text-align: right; margin-top: 20px;