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: patricker/python-substack
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
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: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 16 commits
  • 15 files changed
  • 8 contributors

Commits on Dec 7, 2023

  1. Configuration menu
    Copy the full SHA
    e0743f9 View commit details
    Browse the repository at this point in the history
  2. 🏰 upkeep

    ma2za committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    5708d5d View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2023

  1. 🏰 upkeep

    ma2za committed Dec 26, 2023
    Configuration menu
    Copy the full SHA
    d79f1ca View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2025

  1. Configuration menu
    Copy the full SHA
    81c7feb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    81c0fc2 View commit details
    Browse the repository at this point in the history
  3. Bump certifi from 2023.11.17 to 2024.7.4 (ma2za#34)

    Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.11.17 to 2024.7.4.
    - [Commits](certifi/python-certifi@2023.11.17...2024.07.04)
    
    ---
    updated-dependencies:
    - dependency-name: certifi
      dependency-version: 2024.7.4
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 21, 2025
    Configuration menu
    Copy the full SHA
    faa639b View commit details
    Browse the repository at this point in the history
  4. Update dependencies in poetry.lock and pyproject.toml; bump Python ve…

    …rsion to ^3.9, certifi to 2025.11.12, charset-normalizer to 3.4.4, requests to 2.32.5, and urllib3 to 2.6.2. Adjusted README.md to remove outdated Python version badge.
    ma2za committed Dec 21, 2025
    Configuration menu
    Copy the full SHA
    8407ab2 View commit details
    Browse the repository at this point in the history
  5. 🔖 Bump version to 0.1.17; enhance README with authentication methods …

    …and YAML post management examples
    ma2za committed Dec 21, 2025
    Configuration menu
    Copy the full SHA
    06395cd View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2026

  1. Bump urllib3 from 2.6.2 to 2.6.3 (ma2za#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] <[email protected]>
    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 (m…

    …a2za#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 <[email protected]>
    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() (m…

    …a2za#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 <[email protected]>
    
    * Add before/after screenshots for PR
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    ---------
    
    Co-authored-by: YF Chau <[email protected]>
    Co-authored-by: Claude Opus 4.6 <[email protected]>
    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

Commits on Mar 25, 2026

  1. feat: add blockquote support to from_markdown() and Post.blockquote() (

    …ma2za#40)
    
    Co-authored-by: Ahmad Ragab <[email protected]>
    ASRagab and Ahmad Ragab authored Mar 25, 2026
    Configuration menu
    Copy the full SHA
    7ede834 View commit details
    Browse the repository at this point in the history
  2. feat(api): add methods for managing post tags

    - Incremented version to 0.1.19 in pyproject.toml.
    - Added `add_tags_to_post` method to allow adding multiple tags to a post.
    - Implemented `get_publication_post_tags` to retrieve all tags for the current publication.
    - Created `add_tag_to_post` to check for existing tags before creating new ones and applying them to posts.
    ma2za committed Mar 25, 2026
    Configuration menu
    Copy the full SHA
    88cf3b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1979fff View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ee1c781 View commit details
    Browse the repository at this point in the history
Loading