Add more test cases
This commit is contained in:
parent
c7c46ca1d9
commit
c3d635eacb
7 changed files with 63 additions and 5 deletions
|
@ -4,7 +4,12 @@ Take a look at [[https://niklasfasching.github.io/go-org/][github pages]] for so
|
||||||
* next
|
* next
|
||||||
- more keywords: https://orgmode.org/manual/In_002dbuffer-settings.html
|
- more keywords: https://orgmode.org/manual/In_002dbuffer-settings.html
|
||||||
- table of contents
|
- 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
|
** headlines
|
||||||
- auto-generate unique ids: see [[https://github.com/kaushalmodi/ox-hugo/blob/8472cf2d8667754c9da3728255634e8001a1da6d/ox-hugo.el#L1785-L1850][ox-hugo]]
|
- auto-generate unique ids: see [[https://github.com/kaushalmodi/ox-hugo/blob/8472cf2d8667754c9da3728255634e8001a1da6d/ox-hugo.el#L1785-L1850][ox-hugo]]
|
||||||
- what about name conflicts?
|
- what about name conflicts?
|
||||||
|
|
2
org/testdata/headlines.html
vendored
2
org/testdata/headlines.html
vendored
|
@ -50,7 +50,7 @@ Still outside the drawer
|
||||||
headline with custom status
|
headline with custom status
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
it's possible to use <code class="verbatim">#+SETUP_FILE</code> - in this case the setup file contains the following
|
it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this case the setup file contains the following
|
||||||
</p>
|
</p>
|
||||||
<div class="highlight">
|
<div class="highlight">
|
||||||
<pre>
|
<pre>
|
||||||
|
|
2
org/testdata/headlines.org
vendored
2
org/testdata/headlines.org
vendored
|
@ -20,6 +20,6 @@ This is inside the drawer
|
||||||
:END:
|
:END:
|
||||||
Still outside the drawer
|
Still outside the drawer
|
||||||
* CUSTOM headline with custom status
|
* 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
|
#+INCLUDE: "setup_file_org" src org
|
||||||
|
|
2
org/testdata/headlines.pretty_org
vendored
2
org/testdata/headlines.pretty_org
vendored
|
@ -20,6 +20,6 @@ This is inside the drawer
|
||||||
:END:
|
:END:
|
||||||
Still outside the drawer
|
Still outside the drawer
|
||||||
* CUSTOM headline with custom status
|
* 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
|
#+INCLUDE: "setup_file_org" src org
|
||||||
|
|
27
org/testdata/misc.html
vendored
27
org/testdata/misc.html
vendored
|
@ -65,7 +65,7 @@ This is inside the drawer
|
||||||
:END:
|
:END:
|
||||||
Still outside the drawer
|
Still outside the drawer
|
||||||
* CUSTOM headline with custom status
|
* 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
|
#+INCLUDE: "setup_file_org" src org
|
||||||
</pre>
|
</pre>
|
||||||
|
@ -331,6 +331,31 @@ src/example/export blocks should not be converted!
|
||||||
<p>
|
<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>
|
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>
|
</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'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'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">
|
<div class="footnotes">
|
||||||
<h1 class="footnotes-title">Footnotes</h1>
|
<h1 class="footnotes-title">Footnotes</h1>
|
||||||
<div class="footnote-definitions">
|
<div class="footnote-definitions">
|
||||||
|
|
14
org/testdata/misc.org
vendored
14
org/testdata/misc.org
vendored
|
@ -107,6 +107,20 @@ also, consecutive dashes inside
|
||||||
*** DONE [[https://github.com/chaseadamsio/goorgeous/issues/87][#87]]: Markup in footnotes is rendered literally
|
*** 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/]
|
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
|
* Footnotes
|
||||||
|
|
||||||
[fn:1] a footnote /with/ *markup*
|
[fn:1] a footnote /with/ *markup*
|
||||||
|
|
14
org/testdata/misc.pretty_org
vendored
14
org/testdata/misc.pretty_org
vendored
|
@ -107,6 +107,20 @@ also, consecutive dashes inside
|
||||||
*** DONE [[https://github.com/chaseadamsio/goorgeous/issues/87][#87]]: Markup in footnotes is rendered literally
|
*** 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/]
|
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
|
* Footnotes
|
||||||
|
|
||||||
[fn:1] a footnote /with/ *markup*
|
[fn:1] a footnote /with/ *markup*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue