Skip to content

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

Merged
johnnyjoygh merged 2 commits intousememos:mainfrom
singhanubhavme:main
Mar 28, 2025
Merged

feat: update ItalicNode to use repeated children instead of content#4566
johnnyjoygh merged 2 commits intousememos:mainfrom
singhanubhavme:main

Conversation

@singhanubhavme
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@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