Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update ItalicNode to use repeated children instead of content #4566

Merged
merged 2 commits into from
Mar 28, 2025

Conversation

singhanubhavme
Copy link
Contributor

This PR updates the markdown rendering logic to align with recent changes in the gomark package, specifically the refactored Italic node structure.

The upstream parser now uses a child-based representation (Children []Node) for ast.Italic instead of a simple Content string. This allows for nested inline elements within italic text (e.g., links inside italic).

Key Changes:

  1. Updated rendering logic to handle the new Italic.Children structure
  2. Adjusted any logic that previously relied on Italic.Content

Related PR:
Companion PR in the gomark repo (must be merged first):
👉 Refactor Italic Node Structure for Nested Inline Support

@singhanubhavme singhanubhavme requested a review from boojack as a code owner March 27, 2025 19:03
@johnnyjoygh
Copy link
Collaborator

@singhanubhavme you need to upgrade gomark version in this PR to avoid linter errors.

Copy link
Collaborator

@johnnyjoygh johnnyjoygh left a comment

Choose a reason for hiding this comment

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

LGTM

@johnnyjoygh johnnyjoygh merged commit a63d9b4 into usememos:main Mar 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants