Skip to content

Commit f999027

Browse files
MattFisherclaude
andcommitted
Remove prototype/hedging language from module docstrings
Strip the PROTOTYPE: prefix and "not wired for production" disclaimer from nodes.py and mdrender.py now that the direction is approved. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5dfbffb commit f999027

2 files changed

Lines changed: 8 additions & 11 deletions

File tree

‎substack/mdrender.py‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
"""PROTOTYPE: Markdown -> Substack ProseMirror via markdown-it-py.
1+
"""Markdown -> Substack ProseMirror via markdown-it-py.
22
3-
This replaces the hand-rolled parser in Post.from_markdown() with a real
4-
CommonMark parser (markdown-it-py) plus the standard footnote plugin, and a
5-
small renderer that walks the syntax tree into Substack's node schema.
3+
Implements Post.from_markdown() using a real CommonMark parser (markdown-it-py)
4+
plus the standard footnote plugin, with a small renderer that walks the syntax
5+
tree into Substack's node schema.
66
77
Node construction goes through ``substack.nodes`` so the (undocumented) schema
88
lives in exactly one place.
9-
10-
Not wired for production; imported by Post.from_markdown() when available so the
11-
existing test-suite can be run against it for evaluation.
129
"""
1310

1411
from __future__ import annotations

‎substack/nodes.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""ProseMirror node builders for Substack documents.
22
3-
PROTOTYPE: this module centralises the (undocumented) Substack ProseMirror
4-
schema in one place. Today the node-type strings ("paragraph", "footnoteAnchor",
5-
"image2", ...) and their shapes are scattered across post.py as inline dict
6-
literals. Pulling them here gives:
3+
Centralises the (undocumented) Substack ProseMirror schema in one place.
4+
The node-type strings ("paragraph", "footnoteAnchor", "image2", ...) and
5+
their shapes live here rather than as inline dict literals scattered across
6+
post.py, giving:
77
88
* one source of truth for node shapes (so a schema change is a one-line fix),
99
* discoverable, typed constructors instead of bare dict literals,

0 commit comments

Comments
 (0)