Skip to content

Conversation

@MarleenEliza
Copy link
Member

@MarleenEliza MarleenEliza commented Jul 3, 2025

Changes

TODO

write migration to newer version of plugin after its been released.

Associated issue

How to test

Checklist

  • I have performed a self-review of my own code
  • I have made sure that my PR is easy to review (not too big, includes comments)
  • I have made updated relevant documentation files (in project README, docs/, etc)
  • I have added a decision log entry if the change affects the architecture or changes a significant technology
  • I have notified a reviewer

Comment on lines +25 to +29
const Tags: { Tag: Tag; mark: string }[] =
node.marks?.map((mark) => {
const Tag = elementByMark[mark] || 'span';
return { Tag: Tag, mark };
}) || [];
Copy link
Member Author

Choose a reason for hiding this comment

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

loop over tags with marks

const { node } = Astro.props;
const elementByMark: Record<DefaultMark, string> = {
type Tag = 'span' | 'strong' | 'em' | 'del' | 'mark' | 'code' | 'u';
Copy link
Member Author

Choose a reason for hiding this comment

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

needs to be strongly typed in order to use Tag later on

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.

2 participants