diff --git a/catmd.sh b/catmd.sh index c498f01..6ecd03c 100755 --- a/catmd.sh +++ b/catmd.sh @@ -190,12 +190,15 @@ parseline() { 5) ## Multiline code blocks ## if [[ "$tocheck" =~ $rex_codeblock ]]; then if isfix; then - format_suffix="${FO_RESET}" unfix else - format_prefix="${FO_CODEBLOCK}" fix fi + format_prefix="${FO_CODEBLOCK}" + format_suffix="${FO_RESET}" + elif isfix; then + format_prefix="${FO_CODEBLOCK}" + format_suffix="${FO_RESET}" fi fall || break;; 6) ## Code block started with spaces