prescription.renderers.plain_text
PlainTextRenderer — pure-Python plain text output.
Kramer Harrison, 2026
Classes
PlainTextRenderer()
|
Renders a Document to plain text with Unicode box-drawing characters. |
-
class PlainTextRenderer[source]
Renders a Document to plain text with Unicode box-drawing characters.
-
render(document: Document) → str[source]
Return the rendered document as a string.
- Parameters:
document – The document model to render.
- Returns:
Rendered string (plain text, rich markup, or file path for PDF).
-
write(document: Document, path: str | os.PathLike) → None[source]
Render and write to a file.
- Parameters:
-