Do a C-c C-c
of the elisp
code below ...
If you want to hide
as opposed to remove
, then you can reach me at https://github.com/kjambunathan/org-mode-ox-odt/discussions
#+begin_src emacs-lisp :exports results :results none
(add-hook 'org-export-before-parsing-hook
(defun my-flush-headlines (backend)
(cl-case backend
(odt
(org-with-wide-buffer
;; Flush headlines
(flush-lines (rx (and bol (one-or-more "*") space (one-or-more any) eol))
(point-min) (point-max))))
(otherwise
))))
;; (remove-hook 'org-export-before-parsing-hook-hook
;; 'my-flush-headlines)
#+end_src
* Non non deserunt consectetur amet, ullamco
Enim non voluptate mollit ea laboris et ex nostrud qui labore
cupidatat. Do nisi ea quis et deserunt minim velit ut.
** Excepteur duis eiusmod reprehenderit et reprehenderit
Dolor elit, culpa aliqua enim culpa duis sit nostrud veniam, sint esse
sed id excepteur aute velit velit fugiat dolor.
* Sint eu magna aliqua enim
Occaecat cupidatat occaecat excepteur sed tempor dolore eu quis
consectetur eu nulla labore proident, enim culpa.
** Fugiat fugiat consectetur fugiat fugiat
Irure velit pariatur nulla commodo anim elit, ea mollit sit amet,
commodo et tempor ex commodo adipiscing id.