Add title export option
see https://orgmode.org/manual/Export-Settings.html
This commit is contained in:
parent
9ffcaa8e1c
commit
5e50794af0
2 changed files with 3 additions and 2 deletions
|
@ -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...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue