YeungKC / Hakuba

A fast blog starter that reads data off GitHub Discussions.
https://hakuba.yeungkc.com/
GNU General Public License v3.0
137 stars 20 forks source link

code block adaptation issue #115

Open shpdnkti opened 2 years ago

shpdnkti commented 2 years ago

Describe the bug

There is a problem with the code block adaptation,i built it by cloudflare page. Maybe not support escape character or other reasons. pls help me find out how to fix it.

````bash
ok () { echo -e "[\033[032;1mOK\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return 0; }
info () { echo -e "[\033[034;1mINFO\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return $?; }
fail () { echo -e "[\033[031;1mFAIL\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; return $?; }
err () { echo -e "[\033[031;1mERR\033[0m $(date +%F/%T) $BASH_LINENO] $@" | tee -a $LOG_FILE 2>&1; exit 1; }
....
YeungKC commented 2 years ago

I test the code block content, I think it was cause by Mdsvex, I'll test it over the weekend again.

thank you