From c3d635eacbe1f5cfaaa385754cc267d93be60514 Mon Sep 17 00:00:00 2001 From: Niklas Fasching Date: Thu, 20 Dec 2018 23:20:54 +0100 Subject: [PATCH] Add more test cases --- README.org | 7 ++++++- org/testdata/headlines.html | 2 +- org/testdata/headlines.org | 2 +- org/testdata/headlines.pretty_org | 2 +- org/testdata/misc.html | 27 ++++++++++++++++++++++++++- org/testdata/misc.org | 14 ++++++++++++++ org/testdata/misc.pretty_org | 14 ++++++++++++++ 7 files changed, 63 insertions(+), 5 deletions(-) diff --git a/README.org b/README.org index 8d3be64..5ee31b1 100644 --- a/README.org +++ b/README.org @@ -4,7 +4,12 @@ Take a look at [[https://niklasfasching.github.io/go-org/][github pages]] for so * next - more keywords: https://orgmode.org/manual/In_002dbuffer-settings.html - table of contents -- rethink frontmatter - expose buffer setting for defining which keywords should be parsed as arrays / ... +- rethink frontmatter + - keyword customizable mapping. e.g. #+ARRAY_KWS: list kws that should become []string + - json/yaml values. + - +lisp syntax from [[https://github.com/kaushalmodi/ox-hugo/blob/master/ox-hugo.el#L2791][ox-hugo]]+ + - too much complexity and not native to Org mode, i.e. does not even increase compatibility + - use toml/yaml/json frontmatter from hugo (see [[https://github.com/gohugoio/hugo/issues/5436][hugo #5436]]) ** headlines - auto-generate unique ids: see [[https://github.com/kaushalmodi/ox-hugo/blob/8472cf2d8667754c9da3728255634e8001a1da6d/ox-hugo.el#L1785-L1850][ox-hugo]] - what about name conflicts? diff --git a/org/testdata/headlines.html b/org/testdata/headlines.html index 1ee1a69..b29cf48 100644 --- a/org/testdata/headlines.html +++ b/org/testdata/headlines.html @@ -50,7 +50,7 @@ Still outside the drawer headline with custom status

-it's possible to use #+SETUP_FILE - in this case the setup file contains the following +it's possible to use #+SETUPFILE - in this case the setup file contains the following

diff --git a/org/testdata/headlines.org b/org/testdata/headlines.org
index 3e82dc5..cb03899 100644
--- a/org/testdata/headlines.org
+++ b/org/testdata/headlines.org
@@ -20,6 +20,6 @@ This is inside the drawer
 :END:
 Still outside the drawer
 * CUSTOM headline with custom status
-it's possible to use =#+SETUP_FILE= - in this case the setup file contains the following
+it's possible to use =#+SETUPFILE= - in this case the setup file contains the following
 
 #+INCLUDE: "setup_file_org" src org
diff --git a/org/testdata/headlines.pretty_org b/org/testdata/headlines.pretty_org
index 65a34f7..b0209f0 100644
--- a/org/testdata/headlines.pretty_org
+++ b/org/testdata/headlines.pretty_org
@@ -20,6 +20,6 @@ This is inside the drawer
 :END:
 Still outside the drawer
 * CUSTOM headline with custom status
-it's possible to use =#+SETUP_FILE= - in this case the setup file contains the following
+it's possible to use =#+SETUPFILE= - in this case the setup file contains the following
 
 #+INCLUDE: "setup_file_org" src org
diff --git a/org/testdata/misc.html b/org/testdata/misc.html
index 35be67c..f5f50b3 100644
--- a/org/testdata/misc.html
+++ b/org/testdata/misc.html
@@ -65,7 +65,7 @@ This is inside the drawer
 :END:
 Still outside the drawer
 * CUSTOM headline with custom status
-it's possible to use =#+SETUP_FILE= - in this case the setup file contains the following
+it's possible to use =#+SETUPFILE= - in this case the setup file contains the following
 
 #+INCLUDE: "setup_file_org" src org
 
@@ -331,6 +331,31 @@ src/example/export blocks should not be converted!

footnotes can contain markup - and other elements and stuff 2

+

+issues (wrongly) filed with hugo +

+

+#3874 exporting images in org mode +

+

+Hello, I'm writing hugo blogs using org-mode. +

+

+When inserting an image link like /home/amos/Pictures/Screenshots/img-2017-09-11-165647.png, hugo doesn't export the image. +

+

+#4006 source code blocks in org not rendered correctly +

+
+
+(defun small-shell ()
+  (interactive)
+  (split-window-vertically)
+  (other-window 1)
+  (shrink-window (- (window-height) 12))
+  (ansi-term))
+
+

Footnotes

diff --git a/org/testdata/misc.org b/org/testdata/misc.org index b3df75b..b45069f 100644 --- a/org/testdata/misc.org +++ b/org/testdata/misc.org @@ -107,6 +107,20 @@ also, consecutive dashes inside *** DONE [[https://github.com/chaseadamsio/goorgeous/issues/87][#87]]: Markup in footnotes is rendered literally footnotes can contain *markup* - and other elements and stuff [fn:2:that also goes for *inline* footnote /definitions/] +** issues (wrongly) filed with hugo +*** [[https://github.com/gohugoio/hugo/issues/3874][#3874]] exporting images in org mode +Hello, I'm writing hugo blogs using org-mode. + +When inserting an image link like [[/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png]], hugo doesn't export the image. +*** [[https://github.com/gohugoio/hugo/issues/4006][#4006]] source code blocks in org not rendered correctly + #+BEGIN_SRC emacs-lisp + (defun small-shell () + (interactive) + (split-window-vertically) + (other-window 1) + (shrink-window (- (window-height) 12)) + (ansi-term)) + #+END_SRC * Footnotes [fn:1] a footnote /with/ *markup* diff --git a/org/testdata/misc.pretty_org b/org/testdata/misc.pretty_org index b3df75b..421d3a9 100644 --- a/org/testdata/misc.pretty_org +++ b/org/testdata/misc.pretty_org @@ -107,6 +107,20 @@ also, consecutive dashes inside *** DONE [[https://github.com/chaseadamsio/goorgeous/issues/87][#87]]: Markup in footnotes is rendered literally footnotes can contain *markup* - and other elements and stuff [fn:2:that also goes for *inline* footnote /definitions/] +** issues (wrongly) filed with hugo +*** [[https://github.com/gohugoio/hugo/issues/3874][#3874]] exporting images in org mode +Hello, I'm writing hugo blogs using org-mode. + +When inserting an image link like [[/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png]], hugo doesn't export the image. +*** [[https://github.com/gohugoio/hugo/issues/4006][#4006]] source code blocks in org not rendered correctly +#+BEGIN_SRC emacs-lisp +(defun small-shell () + (interactive) + (split-window-vertically) + (other-window 1) + (shrink-window (- (window-height) 12)) + (ansi-term)) +#+END_SRC * Footnotes [fn:1] a footnote /with/ *markup*