-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters