Hello, Marcin Antczak <marcin.antc...@neutrico-themes.pl> writes:
> I would like to export some org to html with custom backend based on > 'html. > > What I need is to override function org-html-headline from ox-html.el OK. But this isn't related to drawers, is it? If you want to alter drawers export, you need to override `org-html-drawer' too. > I just want to export drawer with some specific name. For example > LOGBOOK or CLOCKTABLE. You can set `org-export-with-drawers'. You can also hard-code the list into `org-mybackend-drawer': (defun org-mybackend-drawer (drawer contents info) (when (member-ignore-case (org-element-property :drawer-name drawer) '("LOGBOOK" "CLOCKTABLE")) (org-export-data-with-backend drawer 'html info))) Of course, you need to install this function in your custom back-end: (org-export-define-derived-backend 'mybackend 'html ... :translate-alist '(... (drawer . org-mybackend-drawer) ...) ...) Regards, -- Nicolas Goaziou