Documentation
¶
Overview ¶
Package edit creates and applies source-preserving changes to AsciiDoc text. It does not perform filesystem I/O.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
Editor applies source-preserving semantic edits to an AsciiDoc document. Every successful operation reparses the updated source before committing it, so subsequent operations always use current syntax and source positions.
func (*Editor) SetHeaderAttribute ¶
SetHeaderAttribute sets a document-header attribute. An existing effective or unset declaration is replaced in place; otherwise it is appended to the current document header.
Click to show internal directories.
Click to hide internal directories.