Add more test cases

This commit is contained in:
Niklas Fasching 2018-12-20 23:20:54 +01:00
parent c7c46ca1d9
commit c3d635eacb
7 changed files with 63 additions and 5 deletions

View file

@ -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?

View file

@ -50,7 +50,7 @@ Still outside the drawer
headline with custom status
</h1>
<p>
it&#39;s possible to use <code class="verbatim">#+SETUP_FILE</code> - in this case the setup file contains the following
it&#39;s possible to use <code class="verbatim">#+SETUPFILE</code> - in this case the setup file contains the following
</p>
<div class="highlight">
<pre>

View file

@ -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

View file

@ -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

View file

@ -65,7 +65,7 @@ This is inside the drawer
:END:
Still outside the drawer
* CUSTOM headline with custom status
it&#39;s possible to use =#+SETUP_FILE= - in this case the setup file contains the following
it&#39;s possible to use =#+SETUPFILE= - in this case the setup file contains the following
#+INCLUDE: &#34;setup_file_org&#34; src org
</pre>
@ -331,6 +331,31 @@ src/example/export blocks should not be converted!
<p>
footnotes can contain <strong>markup</strong> - and other elements and stuff <sup class="footnote-reference"><a id="footnote-reference-2" href="#footnote-2">2</a></sup>
</p>
<h2>
issues (wrongly) filed with hugo
</h2>
<h3>
<a href="https://github.com/gohugoio/hugo/issues/3874">#3874</a> exporting images in org mode
</h3>
<p>
Hello, I&#39;m writing hugo blogs using org-mode.
</p>
<p>
When inserting an image link like <img src="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" alt="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" title="/home/amos/Pictures/Screenshots/img-2017-09-11-165647.png" />, hugo doesn&#39;t export the image.
</p>
<h3>
<a href="https://github.com/gohugoio/hugo/issues/4006">#4006</a> source code blocks in org not rendered correctly
</h3>
<div class="highlight">
<pre>
(defun small-shell ()
(interactive)
(split-window-vertically)
(other-window 1)
(shrink-window (- (window-height) 12))
(ansi-term))
</pre>
</div>
<div class="footnotes">
<h1 class="footnotes-title">Footnotes</h1>
<div class="footnote-definitions">

14
org/testdata/misc.org vendored
View file

@ -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*

View file

@ -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*