Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org2nikola-export-subtree adds subtree headline as a heading #5

Open
joonro opened this issue Sep 14, 2015 · 9 comments
Open

org2nikola-export-subtree adds subtree headline as a heading #5

joonro opened this issue Sep 14, 2015 · 9 comments

Comments

@joonro
Copy link

joonro commented Sep 14, 2015

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
@redguardtoo
Copy link
Owner

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.

@joonro
Copy link
Author

joonro commented Sep 15, 2015

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.

@redguardtoo
Copy link
Owner

M-x org-version? Emacs version?

@joonro
Copy link
Author

joonro commented Sep 16, 2015

org-version is 8.3.1, Emacs is 25.0.50.1 (x86_64-w64-mingw32)

@joonro
Copy link
Author

joonro commented Sep 18, 2015

I actually started getting Invalid read syntax: "] in a list" error when I do (org2nikola-export-subtree).

@redguardtoo
Copy link
Owner

I will check this weekend, I think it's because org-mode changed some API

@joonro
Copy link
Author

joonro commented Sep 18, 2015

I see. Thank you so much!

@redguardtoo
Copy link
Owner

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.

@joonro
Copy link
Author

joonro commented Sep 21, 2015

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!

drym3r added a commit to drym3r/org2nikola that referenced this issue Mar 11, 2017
Also drops support on org-mode versions prior to 8.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants