You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Web: images inside a link (or other inline container) render as block images #1081
Play [ Catan](https://example.com/games/1) tonight
Expected: the image renders inline at markdownStyle.inlineImage.size, as it does on iOS and Android.
Actual: on web it gets the block image style and renders full size, breaking the line.
Cause:markInlineImages in src/web/utils.ts only marks images that are direct children of a Paragraph. An image inside a Link (or Strong, Emphasis, etc.) next to text is never marked isInline.
Suggested fix: any container whose children include non-image content holds its images inline. Markdown images are always inline-level, so this can't misclassify a real block image (a paragraph with only an image keeps its block behaviour):
export function markInlineImages(node: ASTNode): void {
- if (node.type === 'Paragraph' && node.children) {+ if (node.children) {
const hasNonImageChild = node.children.some(
(child) => child.type !== 'Image'
);
Activity
eszlamczyk commentedon Oct 26, 2026
Hi @ericpoulinnz, thanks for the report and the suggested fix! It looks like an easy one. This should be fixed before the next minor release.