diff options
Diffstat (limited to '')
| -rw-r--r-- | src/markdown.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/markdown.rs b/src/markdown.rs index c54271a..a3c939a 100644 --- a/src/markdown.rs +++ b/src/markdown.rs @@ -214,7 +214,7 @@ where level, text, index, - Self::on_link_click, + |url| url, ) } @@ -223,7 +223,7 @@ where settings: Settings, text: &Text, ) -> Element<'a, Url, Theme, Renderer> { - paragraph(settings, text, Self::on_link_click) + paragraph(settings, text, |url| url) } fn unordered_list( @@ -250,6 +250,6 @@ where _code: &'a str, lines: &'a [Text], ) -> Element<'a, Url, Theme, Renderer> { - code_block(settings, lines, Self::on_link_click) + code_block(settings, lines, |url| url) } } |
