Re: keeping subtree heading on export

2024-04-30 Thread Ihor Radchenko
Matt Price writes: > The real problem I have is that, when exporting a subtree, I want to set > org-md-toplevel-hlevel to "2" and add the title; when exporting a whole > file, I want to set org-md-toplevel-hlevel to "1" and ignore the title. You can examine :export-options value in the INFO plis

Re: keeping subtree heading on export

2024-04-26 Thread Matt Price
thanks for the response, Ihor -- reply inline below: On Fri, Apr 26, 2024 at 9:45 AM Ihor Radchenko wrote: > Matt Price writes: > > > ... I need to export each individual page > > of the "book" to its own markdown page. However, jupyter-book expects to > > find the title of the page in the ini

Re: keeping subtree heading on export

2024-04-26 Thread Ihor Radchenko
Matt Price writes: > ... I need to export each individual page > of the "book" to its own markdown page. However, jupyter-book expects to > find the title of the page in the initial first-level heading. So I'd like > to retain the subtree "title" as a first-level heading, and demote the > remai

keeping subtree heading on export

2024-04-24 Thread Matt Price
I'm writing a primitive exporter for jupyter-book , which is a neat way to maintain static documentation and executable jupyter notebooks from the same source files. The source files are written in Myst flavored markdown , so I