class Asciidoctor::Extensions::Postprocessor

Public: Postprocessors are run after the document is rendered and before it's written to the output stream.

Asciidoctor passes a reference to the output String to the process method of each registered Postprocessor. The Preprocessor modifies the String as necessary and returns the String replacement.

The markup format in the String is determined from the backend used to render the Document. The backend and be looked up using the backend method on the Document object, as well as various backend-related document attributes.

Postprocessors can also be used to relocate assets needed by the published document.

Postprocessors must extend Asciidoctor::Extensions::Postprocessor.

Public Instance Methods

process(output) click to toggle source
# File lib/asciidoctor/extensions.rb, line 340
def process output
  output
end