Mirror of Steamdown (Markdown -> Steam Markup converter)
0

Configure Feed

Select the types of activity you want to include in your feed.

Format

Spenser Black (Apr 3, 2025, 7:24 PM EDT) bf958caf 145eedf4

+4 -4
+1 -2
packages/html/src/index.ts
··· 77 77 altText = this.renderInlineNodes(url.nodes); 78 78 } else { 79 79 link = this.ctx.getLink(url.id) || ""; 80 - altText = 81 - url.nodes != null ? this.renderInlineNodes(url.nodes) : url.id; 80 + altText = url.nodes != null ? this.renderInlineNodes(url.nodes) : url.id; 82 81 } 83 82 return `<img src="${link}" alt="${htmlEscape(altText)}" />`; 84 83 }
+3 -2
packages/steamdown/src/renderer.ts
··· 39 39 link = url.link; 40 40 } else { 41 41 const maybeLink = context.getLink(url.id); 42 - const text = url.nodes != null ? renderInlineNodes(url.nodes, context) : url.id; 42 + const text = 43 + url.nodes != null ? renderInlineNodes(url.nodes, context) : url.id; 43 44 if (maybeLink == null) { 44 45 return `![${text}](${url.id})`; 45 46 } 46 - link = maybeLink 47 + link = maybeLink; 47 48 } 48 49 return `[img]${link}[/img]`; 49 50 }