Skip to content

Link annotations extracted but not rendered in markdown output #545

Description

@hoffrocket

The PDF parser already extracts link annotations from pages (/Annots with /Subtype /Link) and creates ItemType::Link items with the target URL.

However, these items are separated out during markdown conversion and never used — the visible text under a link annotation renders as plain text with no [text](url) markup.

For example, a PDF with "Visit our site" hyperlinked to https://example.com currently outputs: Visit our site

Expected: [Visit our site](https://example.com)

The MarkdownOptions.include_links flag exists and defaults to true, but has no effect since the link items are discarded before rendering.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions