diff --git a/ox-hugo-pandoc-cite.el b/ox-hugo-pandoc-cite.el index fbf8496..2117e2d 100644 --- a/ox-hugo-pandoc-cite.el +++ b/ox-hugo-pandoc-cite.el @@ -14,13 +14,27 @@ ;; TODO: Change the defconst to defvar (defvar org-hugo-pandoc-cite-pandoc-args-list '("-f" "markdown" - "-t" "markdown-citations" - "--atx-headers") ;Use "# foo" style heading for output markdown + "-t" "markdown-citations-simple_tables+pipe_tables" + "--atx-headers") "Pandoc arguments used in `org-hugo-pandoc-cite--run-pandoc'. +-f markdown: Convert *from* Markdown + +-t markdown: Convert *to* Markdown + -citations: Remove the \"citations\" extension. This will cause + citations to be expanded instead of being included as + markdown citations. + + -simple_tables: Remove the \"simple_tables\" style. + + +pipe_tables: Add the \"pipe_tables\" style insted that Blackfriday + understands. + +--atx-headers: Use \"# foo\" style heading for output markdown. + These arguments are added to the `pandoc' call in addition to the -\"--bibliography\", output file and input file arguments in that -function.") +\"--bibliography\", output file (\"-o\") and input file +arguments.") (defvar org-hugo-pandoc-cite-pandoc-meta-data '("nocite" "csl") diff --git a/test/site/content-org/all-posts.org b/test/site/content-org/all-posts.org index 9b807a9..c431652 100644 --- a/test/site/content-org/all-posts.org +++ b/test/site/content-org/all-posts.org @@ -4624,11 +4624,7 @@ Some text. #+begin_myshortcode Text not containing *Markdown* #+end_myshortcode -*** COMMENT Testing tables -- FIXME :: Pandoc breaks the tables.. it converts the ox-hugo generated - Markdown tables to something that Blackfriday does not - recognize. - +*** Testing tables |----------+----------+----------| | Header 1 | Header 2 | Header 3 | |----------+----------+----------| diff --git a/test/site/content/posts/citations-example-toml.md b/test/site/content/posts/citations-example-toml.md index 4659d0d..cb634cb 100644 --- a/test/site/content/posts/citations-example-toml.md +++ b/test/site/content/posts/citations-example-toml.md @@ -31,6 +31,13 @@ Some text. {{< myshortcode >}} Text not containing **Markdown** {{< /myshortcode >}} +## Testing tables + +| Header 1 | Header 2 | Header 3 | +|----------|----------|----------| +| a | b | c | +| d | e | f | + ## References {#references}