fastrag.normalization.rst#

Safe Docutils structural adapter retaining unsupported directive source.

Classes

RstNormalizer()

Use the RST parser directly with local/remote file insertion disabled.

class fastrag.normalization.rst.RstNormalizer[source]#

Bases: object

Use the RST parser directly with local/remote file insertion disabled.

property identity: str#

Identify parser and security policy.

normalize(document)[source]#

Map Docutils block tree and conservative source locations.

Parameters:

document (Document)

Return type:

NormalizedDocument