@readme/markdown 14.7.1 → 14.7.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.
package/dist/main.js CHANGED
@@ -12209,7 +12209,7 @@ const LightboxPortal = ({ children }) => {
12209
12209
  return (0,external_amd_react_dom_commonjs2_react_dom_commonjs_react_dom_root_ReactDOM_umd_react_dom_.createPortal)(children, document.body);
12210
12210
  };
12211
12211
  const Image = (Props) => {
12212
- const { align = '', alt = '', border: borderProp = false, caption, className = '', framed: framedProp = false, height = 'auto', src, title = '', width = 'auto', lazy = true, children, wrap: wrapProp, } = Props;
12212
+ const { align = '', alt = '', border: borderProp = false, caption, className = '', framed: framedProp = false, height = Props.style?.height ?? 'auto', src, style, title = '', width = Props.style?.width ?? 'auto', lazy = true, children, wrap: wrapProp, } = Props;
12213
12213
  // Normalize border/framed: MDXish passes {false} as the string "false", not a boolean
12214
12214
  const border = borderProp === true || borderProp === 'true';
12215
12215
  const framed = framedProp === true || framedProp === 'true';
@@ -12217,7 +12217,7 @@ const Image = (Props) => {
12217
12217
  const noWrap = (align === 'left' || align === 'right') && (wrapProp === false || wrapProp === 'false');
12218
12218
  const [lightbox, setLightbox] = external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.useState(false);
12219
12219
  if (className === 'emoji') {
12220
- return external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { alt: alt, height: height, loading: lazy ? 'lazy' : 'eager', src: src, title: title, width: width });
12220
+ return (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { alt: alt, height: height, loading: lazy ? 'lazy' : 'eager', src: src, style: style, title: title, width: width }));
12221
12221
  }
12222
12222
  const handleKeyDown = ({ key, metaKey: cmd }) => {
12223
12223
  const cmdKey = cmd ? 'cmd+' : '';
@@ -12245,7 +12245,7 @@ const Image = (Props) => {
12245
12245
  };
12246
12246
  // Framed images center the <img> itself; outer wrapper handles left/right alignment via text-align.
12247
12247
  const imgClass = `img ${caption || children || framed ? 'img-align-center' : align ? `img-align-${align}` : ''} ${border ? 'border' : ''}${noWrap ? ' img-no-wrap' : ''}`;
12248
- const imgElement = (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { alt: alt, className: imgClass, height: height, loading: lazy ? 'lazy' : 'eager', src: src, title: title, width: width }));
12248
+ const imgElement = (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("img", { alt: alt, className: imgClass, height: height, loading: lazy ? 'lazy' : 'eager', src: src, style: style, title: title, width: width }));
12249
12249
  const closedLightbox = (ariaLabel, content) => (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { "aria-label": ariaLabel, className: "img lightbox closed", onClick: toggle, onKeyDown: handleKeyDown, role: 'button', tabIndex: 0 },
12250
12250
  external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement("span", { className: "lightbox-inner" }, content)));
12251
12251
  const lightboxOverlay = lightbox ? (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_.createElement(LightboxPortal, null,
package/dist/main.node.js CHANGED
@@ -24835,7 +24835,7 @@ const LightboxPortal = ({ children }) => {
24835
24835
  return (0,external_react_dom_namespaceObject.createPortal)(children, document.body);
24836
24836
  };
24837
24837
  const Image = (Props) => {
24838
- const { align = '', alt = '', border: borderProp = false, caption, className = '', framed: framedProp = false, height = 'auto', src, title = '', width = 'auto', lazy = true, children, wrap: wrapProp, } = Props;
24838
+ const { align = '', alt = '', border: borderProp = false, caption, className = '', framed: framedProp = false, height = Props.style?.height ?? 'auto', src, style, title = '', width = Props.style?.width ?? 'auto', lazy = true, children, wrap: wrapProp, } = Props;
24839
24839
  // Normalize border/framed: MDXish passes {false} as the string "false", not a boolean
24840
24840
  const border = borderProp === true || borderProp === 'true';
24841
24841
  const framed = framedProp === true || framedProp === 'true';
@@ -24843,7 +24843,7 @@ const Image = (Props) => {
24843
24843
  const noWrap = (align === 'left' || align === 'right') && (wrapProp === false || wrapProp === 'false');
24844
24844
  const [lightbox, setLightbox] = external_react_.useState(false);
24845
24845
  if (className === 'emoji') {
24846
- return external_react_.createElement("img", { alt: alt, height: height, loading: lazy ? 'lazy' : 'eager', src: src, title: title, width: width });
24846
+ return (external_react_.createElement("img", { alt: alt, height: height, loading: lazy ? 'lazy' : 'eager', src: src, style: style, title: title, width: width }));
24847
24847
  }
24848
24848
  const handleKeyDown = ({ key, metaKey: cmd }) => {
24849
24849
  const cmdKey = cmd ? 'cmd+' : '';
@@ -24871,7 +24871,7 @@ const Image = (Props) => {
24871
24871
  };
24872
24872
  // Framed images center the <img> itself; outer wrapper handles left/right alignment via text-align.
24873
24873
  const imgClass = `img ${caption || children || framed ? 'img-align-center' : align ? `img-align-${align}` : ''} ${border ? 'border' : ''}${noWrap ? ' img-no-wrap' : ''}`;
24874
- const imgElement = (external_react_.createElement("img", { alt: alt, className: imgClass, height: height, loading: lazy ? 'lazy' : 'eager', src: src, title: title, width: width }));
24874
+ const imgElement = (external_react_.createElement("img", { alt: alt, className: imgClass, height: height, loading: lazy ? 'lazy' : 'eager', src: src, style: style, title: title, width: width }));
24875
24875
  const closedLightbox = (ariaLabel, content) => (external_react_.createElement("span", { "aria-label": ariaLabel, className: "img lightbox closed", onClick: toggle, onKeyDown: handleKeyDown, role: 'button', tabIndex: 0 },
24876
24876
  external_react_.createElement("span", { className: "lightbox-inner" }, content)));
24877
24877
  const lightboxOverlay = lightbox ? (external_react_.createElement(LightboxPortal, null,