References
Related Notes
History
2025-03-15 W10
@user 마크다운 파일에 ‘\n’ 개행문자를 넣고 싶은데 어덯게 넣어야 하지?
@assistant 마크다운에서 ‘\n’ 개행 문자를 넣고 싶다면, 문장의 끝에 *공백 두 칸*을 추가하거나 <br>
태그를 사용하면 됩니다. 예를 들어:
- 문장의 끝에 공백 두 칸:
문장 끝에 공백 두 칸
<br>
태그 사용:문장 끝에<br>새로운 줄
이 두 가지 방법으로 줄바꿈을 강제할 수 있습니다[1][2][3].
- Citations: [1] https://hongsii.github.io/2017/06/01/How-to-Write-with-Markdown/ [2] https://dlee0129.tistory.com/47 [3] https://www.heropy.dev/p/B74sNE [4] https://goddaehee.tistory.com/307 [5] https://steemit.com/markdown/@etclog/g649h
@user ox-hugo 패지키를 활용하여 조직모드 파일을 작성할 때 줄바꿈을 넣는 방법?
@assistant ox-hugo 패키지를 사용하여 조직모드 파일에서 줄바꿈을 넣으려면, 문장의 끝에 *\\*를 추가하면 됩니다. 예를 들어:
Line 1\\
Line 2
이렇게 하면 Markdown으로 변환 시에도 강제로 줄바꿈이 적용됩니다[4].
또한, 문장의 끝에 공백 두 칸을 추가하는 방법도 있지만, ox-hugo에서는 이 방법이 항상 일관된 결과를 보장하지 않을 수 있습니다[5].
- Citations: [1] https://github.com/clockoon/my-emacs-setting/blob/master/config.org [2] https://blog.kakaocdn.net/dn/lXLgh/btq788Dqc06/CQ3ekszZok0NQTwKTyyZ50/dictionary.cfg?attach=1&knm=tfile.cfg [3] https://ox-hugo.scripter.co [4] https://ox-hugo.scripter.co/test/posts/force-line-break/ [5] https://github.com/kaushalmodi/ox-hugo/issues/72
@user