saminsohag / flutter_packages

9 stars 2 forks source link

TableMd() is commented out #3

Closed masfour7 closed 5 months ago

masfour7 commented 5 months ago

Hi, thanks for the package. Is there a reason you commented "TableMd" in the code? Table rendering is not working.

saminsohag commented 5 months ago

I have commented "TableMd" at "markdown_component.dart" file because I have implemented the rendering logic of TableMd differently at "md_widget.dart" file. The syntax of rendering a table is little different than the official Markdown language. The syntax is given down bellow

| Name | Roll | | sohag | 1 |

This is the syntax of rendering a table. If you are rendering a table below some other component then you have to put at least a new line between the other component and the table component like:

# Put a new line then write the table syntax

| data 1| data 2| | data 3| data 4|

() also you have add at least two rows there

Here is the example image:

Screenshot 2024-01-16 at 6 48 55 PM

I hove this might give you the answer.

masfour7 commented 5 months ago

You're correct. Thank you @saminsohag