diff --git a/.changeset/clean-frogs-fail.md b/.changeset/clean-frogs-fail.md
new file mode 100644
index 000000000..0edb4233a
--- /dev/null
+++ b/.changeset/clean-frogs-fail.md
@@ -0,0 +1,5 @@
+---
+'myst-to-react': patch
+---
+
+Support inline property on image nodes
diff --git a/packages/myst-to-react/src/image.tsx b/packages/myst-to-react/src/image.tsx
index f6bfc6f76..26bef1203 100644
--- a/packages/myst-to-react/src/image.tsx
+++ b/packages/myst-to-react/src/image.tsx
@@ -37,18 +37,25 @@ function alignToMargin(align: string) {
}
}
+function inlineStyle(inline?: boolean) {
+ if (inline) return { display: 'inline' };
+ return {};
+}
+
function Video({
src,
urlSource,
align = 'center',
width,
height,
+ inline,
}: {
src: string;
urlSource?: string;
width?: string;
height?: string;
align?: Alignment;
+ inline?: boolean;
}) {
return (
;
@@ -95,6 +105,7 @@ function Picture({
width: getStyleValue(width),
height: getStyleValue(height),
...alignToMargin(align),
+ ...inlineStyle(inline),
}}
src={src}
alt={alt}
@@ -103,7 +114,7 @@ function Picture({
);
if (!srcOptimized) return image;
return (
-