Skip to content

Conversation

@Lakr233
Copy link

@Lakr233 Lakr233 commented May 27, 2025

This pull request introduces a new feature to enable deep copying of a cmark_parser object, allowing the creation of independent parser forks.

Copilot AI review requested due to automatic review settings May 27, 2025 11:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request implements a new feature to deep copy a cmark_parser object, allowing independent parser forks.

  • Adds a new header (parser_fork.h) and source (parser_fork.c) file with functionality to duplicate parser state.
  • Registers the new fork API in the public header (cmark-gfm.h) for use in streaming mode.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/parser_fork.h Introduces the fork API with proper C/C++ extern wrappers.
src/parser_fork.c Implements deep copying of parser trees, reference maps, and associated buffers.
src/cmark-gfm.h Exposes cmark_parser_fork in the public API.
@Lakr233 Lakr233 force-pushed the add-parser-fork-gfm branch from 188e9e5 to babf7e7 Compare May 27, 2025 12:04
Lakr233 and others added 2 commits May 27, 2025 20:05
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant