class Asciidoctor::Extensions::Preprocessor
Preprocessor implementations must extend the Preprocessor class.
falsy, which is equivalent) or a reference to a substitute Reader.
can modify the Reader as necessary and either return the same Reader (or
{Processor#process} method of the Preprocessor instance. The Preprocessor
Asciidoctor passes the document and the document’s Reader to the
and the end of line character sequence from each line.
lines and normalizes them. The normalize process strips trailing whitespace
Prior to invoking the preprocessor, Asciidoctor splits the source text into
normalized, but before parsing begins.
Public: Preprocessors are run after the source text is split into lines and
def process document, reader
def process document, reader raise ::NotImplementedError, %(#{Preprocessor} subclass #{self.class} must implement the ##{__method__} method) end