백틱(``` + txt)을 사용해도 되는데, 이렇게 하면 포맷이 유지되지만 스타일을 마음에 들어하지 않을 수도 있습니다
또는 리치 텍스트 에디터에서:
다음과 같이 변환됩니다:
hello world
this is a line with a leading space
this is a line with 2 leading spaces
this is a line with 3 leading spaces
TC에 접근 권한이 있다면, 이를 완화하기 위해 작은 CSS를 추가할 수 있습니다:
code.lang-txt, pre code.lang-txt {
font-family: cursive;
font-size: inherit;
background: transparent;
color: inherit;
}
pre:has(code.lang-txt) {
background: transparent;
border: none;
padding: 0;
}
예를 들어, 다음과 같이 보입니다:


