Skip to content

Commit

Permalink
fixed image rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
rambip committed Aug 2, 2023
1 parent e199a2a commit e590120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,7 @@ fn render_link(context: &RenderContext, link: LinkDescription)
}.into_any()
),
(None, true) => Ok(view!{cx,
<image href={link.url} alt=link.title>
{link.content}
</image>
<img src={link.url} alt=link.title/>
}.into_any()
)
}
Expand Down

0 comments on commit e590120

Please sign in to comment.