emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Org Markdown exporter (ox-md) does not respect Footnotes headi


From: Ihor Radchenko
Subject: Re: [BUG] Org Markdown exporter (ox-md) does not respect Footnotes heading level [9.6.6 (release_9.6.6 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]
Date: Fri, 15 Dec 2023 14:03:53 +0000

Pablo Padilla <pgpb.padilla@gmail.com> writes:

> I have describe the bug here: https://emacs.stackexchange.com/q/79770/11978

Thanks for reporting!
Fixed, on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6e72a4c7f

Original post:

Given that I have an Org document with footnotes
And I have defined:
#+BIND: org-md-toplevel-hlevel 2
And in my Emacs init script I have set:
(setq org-export-allow-bind-keywords t)
When I export using ox-md: C-c C-e m m
Expected: Then I should see that the footnotes heading is a level 2 heading

Actual: The footnotes heading is always exported as a level 1 heading

Do I need to change another setting for this to work?

The entire Org document:

#+BIND: org-md-toplevel-hlevel 2

Post summary or tagline.

** level 1

   Post starts here. [fn:1]

   
*** level2

    lorem ipsum


** Footnotes

[fn:1] a footnote 

The resulting Markdown file:


## Table of Contents

1.  [level 1](#orgfadcdb8)
    1.  [level2](#org61fade8)

Post summary or tagline.


<a id="orgfadcdb8"></a>

## level 1

Post starts here. <sup><a id="fnr.1" class="footref" href="#fn.1" 
role="doc-backlink">1</a></sup>


<a id="org61fade8"></a>

### level2

lorem ipsum


# Footnotes

<sup><a id="fn.1" href="#fnr.1">1</a></sup> a footnote


-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]