org2nikola
org2nikola copied to clipboard
org2nikola-export-subtree adds subtree headline as a heading
Hi,
I'm using ox-nikola
Version: 20150901.1507 from melpa, and I found that whenever I run (org2nikola-export-subtree)
, it adds the headline of the subtree as a heading. For example, if I have
* post title
Text
** header 1
Text
the resulting blog post (basically) becomes
=========
post title
=========
post title
=======
Text
header 1
----------
Text
instead of
=========
post title
=========
Text
header 1
=======
Text
You are using org2nikola instead of ox-nikola. In org2nikola, you should write blog posts in one file, each subtree (node) are regarded as a post. I've not implemented the per file command yet.
I'm actually talking about exporting the subtree. The headline of the toplevel subtree should be the title of the blog post and the body of the subtree should be the body of the blog post, but strangely org2nikola is putting the whole subtree (including the toplevel headline) inside the body of the blog post instead.
I'm sorry if my explanation is hard to understand. It used to work well, and it seems org2nikola has not been updated for a while, so I actually think some other settings broke this. I will let you know once I find the culprit.
M-x org-version
? Emacs version?
org-version is 8.3.1, Emacs is 25.0.50.1 (x86_64-w64-mingw32)
I actually started getting Invalid read syntax: "] in a list"
error when I do (org2nikola-export-subtree)
.
I will check this weekend, I think it's because org-mode changed some API
I see. Thank you so much!
it's working in 24.3, 24.4, 24.5.
25.0.50 is unstable version I will not support.
I suggest sticking to the stable version.
I understand - it seems I shouldn't have upgraded - I'm having hard time reverting it (bunch of errors in my init file). Thanks anyway!