@readme/markdown 14.2.1 → 14.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,7 @@ function Anchor(props: Props) {
62
62
  // Unwrap any nested anchor elements that GFM's autolinker may have created.
63
63
  // This prevents invalid nested <a> tags when the Anchor's text content looks like a URL.
64
64
  const unwrappedChildren = React.Children.map(children, child => {
65
- if (React.isValidElement(child) && child.type === 'a') {
65
+ if (React.isValidElement(child) && (child.type === 'a' || child.type === Anchor)) {
66
66
  return child.props.children;
67
67
  }
68
68
  return child;