Add title export option

see https://orgmode.org/manual/Export-Settings.html
This commit is contained in:
Niklas Fasching 2020-06-26 12:23:29 +02:00
parent 9ffcaa8e1c
commit 5e50794af0
2 changed files with 3 additions and 2 deletions

View file

@ -92,7 +92,7 @@ func (w *HTMLWriter) WriterWithExtensions() Writer {
func (w *HTMLWriter) Before(d *Document) {
w.document = d
w.log = d.Log
if title := d.Get("TITLE"); title != "" {
if title := d.Get("TITLE"); title != "" && w.document.GetOption("title") != "nil" {
titleDocument := d.Parse(strings.NewReader(title), d.Path)
if titleDocument.Error == nil {
title = w.WriteNodesAsString(titleDocument.Nodes...)