bokyung124 / bokyung124.github.io

study archives
https://bokyung124.github.io/
MIT License
0 stars 0 forks source link

[Error] Liquid Exception: Liquid syntax error (line 98): Unknown tag #1

Open bokyung124 opened 11 months ago

bokyung124 commented 11 months ago

markdown 문서 내 html 코드를 작성할 때 Liquid Exception: Liquid syntax error (line 110): Tag '{% %}' was not properly terminated with regexp: /\%\}/ in /github/workspace/_posts/DE DevCourse/2023-10-31-1031.md

Liquid Exception: Liquid syntax error (line 98): Unknown tag 'csrf_token' in /github/workspace/_posts/DE DevCourse/2023-11-02-1102.md

처럼 {% %} 를 사용한 곳에서 에러가 발생하여 포스팅이 되지 않음

bokyung124 commented 11 months ago

1) {% %}는 liquid 언어로 인식하여, 마크다운 문서 내에 있는 경우 에러를 발생시킴
2) {{ }}는 escape 언어로 인식하여, 해당 기호가 있는 구문을 표시하지 않음

해결방법
위 두 기호 앞뒤에 {% raw %} , {% endraw %} 입력!