-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: support images inside tables #68
Comments
Hello @IlyaGulya ! Currently tables do not support images. This comes from the fact that TextView does not support columns. That's why table draws its content manually (you won't find table content in a TextView if you inspect * FYI one cannot control the width of a table column is another limitation of tables implementation. All columns will be equal width |
How about change the way to just render table by webview, the other tags render by textview ? Recently i finish a demo to overcome this. So we first need separate
Then only
So every thing goes fine as i think. check this commit for detail |
Hello @brucetoo ! First of all, I want to address parent comment. I think I won't be adding images to tables in current version. I mean, it's limited, but works for simple cases. Next major release though will address that. Now, adding a WebView (possibly multiple) inside a ScrollView will decrease performance drastically. And maybe rendering the whole thing in a WebView will be more performance wise. Also, currently we support a single TextView. Well, out-of-box. Adding management of multiple views (not only TextViews) is not desirable at all. The thing is I was thinking about this case some time and I came up with a solution that uses a RecyclerView and does not introduce major changes to the core artifact (which stays the same). You can look here (it's in I think it's better and more future-proof solution. The only downside is: there is no good So, taking this into account, maybe, when used the solution I have just linked, only temporary we can render table in a WebView. But, as far as I remember, we won't be able to do real if someone is interested I can later share my thoughts on a View that could display markdown tables (that would answer our needs). I anyway was doing to create an issue with |
@noties Thanks for your so detailed comments. As you mentioned above, there are two key point:
2、WebView‘s real
Certainly, it's all be processing in my situation. (Just want to perfect duplicate rich-text styles html in android) In this way, we maybe handle all the tags not perfect supported by TextView with some special |
Upcoming |
There is support for images inside tables in upcoming |
Hello!
According to readme, library supports inline markdown: https://github.com/noties/Markwon/blame/master/README.md#L230
But it seems that it does not support images which located inside the tables in Markdown.
Here is example of such case (got it from here https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21888):
Using Markwon leads to such behavior:
The text was updated successfully, but these errors were encountered: