Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ma2za/python-substack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.17
Choose a base ref
...
head repository: ma2za/python-substack
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.18
Choose a head ref
  • 4 commits
  • 6 files changed
  • 7 contributors

Commits on Mar 3, 2026

  1. Bump urllib3 from 2.6.2 to 2.6.3 (#37)

    Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.6.2 to 2.6.3.
    - [Release notes](https://github.com/urllib3/urllib3/releases)
    - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
    - [Commits](urllib3/urllib3@2.6.2...2.6.3)
    
    ---
    updated-dependencies:
    - dependency-name: urllib3
      dependency-version: 2.6.3
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 3, 2026
    Configuration menu
    Copy the full SHA
    fe45356 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2026

  1. fix: parse_inline drops links at position 0 and marks() loses href (#36)

    * fix: parse_inline drops links at position 0 and marks() loses href
    
    Two bugs in inline link handling:
    
    1. parse_inline(): Links at the start of a line (position 0) were silently
       dropped. The image-exclusion check `match.start() > 0 and ...` would
       short-circuit to False when the link started at position 0, causing it
       to be skipped entirely. Fixed by checking `match.start() == 0 or
       text[match.start() - 1] != '!'` instead.
    
    2. marks(): All link hrefs were set to null. parse_inline() returns marks
       with the structure `{'type': 'link', 'attrs': {'href': url}}`, but
       marks() only checked `mark.get('href')` at the top level. Added
       fallback to `mark.get('attrs', {}).get('href')` to handle both
       the attrs-nested format from parse_inline and the top-level format
       used in the README examples.
    
    Added tests covering both bugs plus regression tests for image exclusion.
    
    * chore: verify pre-commit formatting
    
    * fix: keep links at pos 0; preserve link href (no reformat)
    
    ---------
    
    Co-authored-by: cellarius <ahmad.ragab.0001@gmail.com>
    ASRagab and cellarius authored Mar 7, 2026
    Configuration menu
    Copy the full SHA
    3277368 View commit details
    Browse the repository at this point in the history
  2. Render bullet lists as proper ProseMirror nodes in from_markdown() (#35)

    * Render bullet lists as proper ProseMirror nodes in from_markdown()
    
    from_markdown() stripped bullet markers (* / -) but emitted each item
    as an independent paragraph node. Substack's ProseMirror editor expects
    a single bullet_list node wrapping list_item children. Without this
    structure, bullet lists render as disconnected paragraphs in the
    published post.
    
    Consecutive bullet lines are now accumulated and flushed as a single
    bullet_list node with proper list_item > paragraph nesting. Non-bullet
    lines and blank lines flush the pending list, so mixed content works
    correctly.
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
    * Add before/after screenshots for PR
    
    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    
    ---------
    
    Co-authored-by: YF Chau <yfchau@YFs-MacBook-Air.local>
    Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
    3 people authored Mar 7, 2026
    Configuration menu
    Copy the full SHA
    a37540e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3a3bfdf View commit details
    Browse the repository at this point in the history
Loading