Skip to content

Orgmode macros cause abort #391

@roblem

Description

@roblem

Environment

Python Version:
Python 3.8.8

Nikola Version:
Nikola v8.1.3

Operating System:
Fedora 34

Description:

Emacs Orgmode source files are failing to be rendered as html if they contain org macros. The following org file can be exported successfully (with the {{{x_variable}}} being replaced with the value First Blogpost!) if using standard orgmode export. Using this orgmode source:

#+BEGIN_COMMENT
.. title: Test macro
.. slug: test_macro
.. date: 2021-06-16 012:31:21 UTC-05:00
.. tags: test
.. link:
.. description:
.. type: text
#+END_COMMENT

#+MACRO: x_variable First Blogpost!

This is my {{{x_variable}}}

I get the error:

Undefined Org macro: x_variable; aborting

when using either nikola build or the manual nikola command:

emacs --batch -l ./init.el --eval '(nikola-html-export "~/Downloads/blog/blogpost.org" "~/Downloads/blog/blogpost.html")'

This was working awhile back.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions