You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Text color and highlight marks (textStyle / highlight), settable via substack.nodes.text_style_mark() / highlight_mark() for direct node
construction, and in Markdown via Pandoc-style span attributes
([text]{style="color:#hex"} / {style="background-color:#hex"}), parsed
and exported round-trip. Verified against Substack's real editor schema
(confirmed by applying both to a live draft and reading the rendered HTML
back: textStyle becomes a <span data-color> with inline color, highlight becomes a <mark data-color> with inline background-color).
Optional markdown_dir argument on Post.from_markdown, Api.create_draft_from_markdown, Api.update_draft_from_markdown, and mdrender.markdown_to_doc. A relative local image path that is not found in
the working directory is then looked up in that folder. The substack drafts create, substack drafts update, substack-publish-markdown, and substack-publish-yaml commands pass the Markdown file's folder (the YAML
file's folder for inline Markdown), so images stored beside a post are found
from any working directory. Paths that resolve today resolve to the same file.
Fixed
Nested color and highlight spans override inherited styles of the same type
without creating duplicate ProseMirror marks or changing sibling styles.
Repeated style properties use the last nonempty declaration.
Api.get_drafts() now asks for drafts by default. Substack rejects the
request with 400 Invalid value when no filter is sent, so calling it
without arguments always failed.
Local Markdown images now carry the real width, height, byte size, and
content type that Substack reports for the upload, instead of every image
being recorded as 1456x819 whatever its real shape.
Development
Add a portable cloud setup script that installs pinned Poetry, locked
development dependencies, the MCP extra, and repository hooks.
Document cloud configuration, offline validation, and maintainer handover.
Track the maintainer-approved release plan, project guidance, and release
workflows so every clone retains the development roadmap.
Keep environment credentials and generated tool environments out of Git.
Dependencies
Update markdown-it-py to 4.3.0 and PyYAML to 6.0.4.
Update the optional MCP extra to FastMCP 4.1.8.
Refresh the dnspython and pytest versions in the lockfile.