emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Pablo Padilla <pgpb.padilla@gmail.com>
Cc: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <87ttojzho6.fsf@localhost> (raw)
In-Reply-To: <AC5BC3B4-33F9-487E-877E-EA9A829608A5@gmail.com>

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	other threads:[~2023-12-15 14:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-13 19:34 [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/)] Pablo Padilla
2023-12-15 14:03 ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttojzho6.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=pgpb.padilla@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).