org-mode/etc
Rohit Patnaik b7f4afe86c
lisp/ox-md.el: Add top level header setting
* lisp/ox-md.el (defcustom org-md-toplevel-hlevel): Define the customizable
variable that defines the top level heading to use when exporting to markdown.
(org-export-define-derived-backend): Read the value of the new
`org-md-toplevel-hlevel' variable into the `:options-alist' for this backend
(org-md--build-toc): Use the newly defined top-level heading setting to control
the heading level for the "Table of Contents" text.
(org-md-headline): Use the newly defined top-level heading setting as an offset
to the heading level calculated by `org-export-get-relative-level'.

This patch adds a new setting: `org-md-toplevel-hlevel' that controls which
Markdown heading level is used for top level headings.  This change makes
markdown export more like HTML export, which has a `org-html-toplevel-hlevel'
variable which does the same thing for HTML export.

TINYCHANGE
2022-08-26 21:00:28 +08:00
..
csl etc/csl: Update files to latest versions 2021-10-02 11:29:29 -04:00
schema Backport commit f1f351def from Emacs 2021-06-27 23:30:22 -04:00
styles Prefer "website" to "homepage" 2022-06-26 10:10:48 +08:00
Makefile oc-csl: Implement `csl' citation processor 2021-07-09 08:47:14 +02:00
ORG-NEWS lisp/ox-md.el: Add top level header setting 2022-08-26 21:00:28 +08:00