From a74b8529e6de54d39bd60ba739d54a127d22fd2b Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sat, 16 Jan 2021 23:11:16 +0900 Subject: [PATCH] pelican-pandoc-reader tested. but. not safisfied at all. hmm. --- .../20210116T182208+0900_오래/index.rst | 2 ++ .../20210116T223143+0900_markdown/index.md | 18 ++++++++++++++++++ pelicanconf.py | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 content/posts/notes/20210116T182208+0900_오래/index.rst create mode 100644 content/posts/website/20210116T223143+0900_markdown/index.md diff --git a/content/posts/notes/20210116T182208+0900_오래/index.rst b/content/posts/notes/20210116T182208+0900_오래/index.rst new file mode 100644 index 0000000..12766a7 --- /dev/null +++ b/content/posts/notes/20210116T182208+0900_오래/index.rst @@ -0,0 +1,2 @@ +오래 걸렸지? +그래도 일단, 컴백! 💕 diff --git a/content/posts/website/20210116T223143+0900_markdown/index.md b/content/posts/website/20210116T223143+0900_markdown/index.md new file mode 100644 index 0000000..f0636ba --- /dev/null +++ b/content/posts/website/20210116T223143+0900_markdown/index.md @@ -0,0 +1,18 @@ +--- +title: "md" +author: "D" +date: "2021/01/16, 22:35:12, +0900" +--- +안녕. +줄넘기기, 줄넘기. + +이번엔 두 줄을 넘긴건데.... + +흠. 어떻게 해도 안된다. 실패네. +한줄을 잘 띄어지는데, 2줄을 띄는 것 (그러니까, 다음 문단의 시작) 이걸 할 수가 없고 +위에 yaml 헤더 같은 것도 꼭 있어야 된다는데 ㅎ.. 알게 뭐람. 정말 쓰잘데기 없다. md. + +bye. + +ps. pelican-pandoc-reader를 써서. pandoc의 hard_line_breaks의 덕을 좀 보면 좋으려나! 하는 기대감이 있었지만, 흠. 다 쓸데 없어. +역시, text 를 그냥 그대로 출력해주는 reader가 최고야. 그것을 만드는 수 밖에는 없다. 아우 답답한 사람들. md가 다 망치고 있어-진짜. diff --git a/pelicanconf.py b/pelicanconf.py index 7c19ce5..a461867 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -35,6 +35,12 @@ LINKS = (('Pelican', 'http://getpelican.com/'), SOCIAL = (('You can add links in your config file', '#'), ('Another social link', '#'),) +#pandoc +PANDOC_EXTENSIONS = [ + "+hard_line_breaks", + "+escaped_line_breaks" +] + DEFAULT_PAGINATION = 20 PAGINATED_TEMPLATES = {'index': None, 'tag': None, 'category': None, 'author': None} TEMPLATE_PAGES = {'pages.html': 'pages.html'}