Variable: org-html-prefer-user-labels

org-html-prefer-user-labels is a customizable variable defined in ox-html.el.gz.

Value

nil

Documentation

When non-nil use user-defined names and ID over internal ones.

By default, Org generates its own internal ID values during HTML export. This process ensures that these values are unique and valid, but the keys are not available in advance of the export process, and not so readable.

When this variable is non-nil, Org will use NAME keyword, or the real name of the target to create the ID attribute.

Independently of this variable, however, CUSTOM_ID are always used as a reference.

This variable was added, or its default value changed, in Org version
9.4.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox-html.el.gz
(defcustom org-html-prefer-user-labels nil
  "When non-nil use user-defined names and ID over internal ones.

By default, Org generates its own internal ID values during HTML
export.  This process ensures that these values are unique and
valid, but the keys are not available in advance of the export
process, and not so readable.

When this variable is non-nil, Org will use NAME keyword, or the
real name of the target to create the ID attribute.

Independently of this variable, however, CUSTOM_ID are always
used as a reference."
  :group 'org-export-html
  :package-version '(Org . "9.4")
  :type 'boolean
  :safe #'booleanp)