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
Markdown supports images.
Flet supports images.
Flet images support svg.
Markdown does not seem to work with svgs.
Code example to reproduce the issue:
md1="""hello![Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.](https://myoctocat.com/assets/images/base-octocat.svg)world"""defmain(page: ft.Page):
page.scroll="auto"page.add(
ft.Markdown(
md1,
selectable=True,
extension_set=ft.MarkdownExtensionSet.GITHUB_WEB,
on_tap_link=lambdae: page.launch_url(e.data),
)
)
ft.app(target=main, view=ft.AppView.WEB_BROWSER)
Description
Markdown supports images.
Flet supports images.
Flet images support svg.
Markdown does not seem to work with svgs.
Code example to reproduce the issue:
Describe the results you received:
Describe the results you expected:
hello
![Screenshot of a comment on a GitHub issue showing an image, added in the Markdown, of an Octocat smiling and raising a tentacle.](https://camo.githubusercontent.com/e5fa54ed7f0565161a4bc218715059dfcb4775d2e91829e6017d6ae92019994a/68747470733a2f2f6d796f63746f6361742e636f6d2f6173736574732f696d616765732f626173652d6f63746f6361742e737667)
world
This code was directly copied from the github markdown docs: https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax
Additional information you deem important (e.g. issue happens only occasionally):
Flet version (
pip show flet
):0.11
0.13
Operating system:
Win10
Additional environment details:
Does not work in either windows native app or web app either.
Note: the svg could contain links so clicking those should cause on_tap_link events in theory.
The text was updated successfully, but these errors were encountered: