SQLite Forum

Support for Markdown formatted table output from a query
Login
> Markdown also allows you to insert raw HTML

Well, then it's HTML, not Markdown... Markdown files with HTML tables would mandate rendering into HTML. It's preferable for Markdown files to remain readable in raw form too.


There's definitely difference in reading a *raw* Markdown text with table in the form:


```
 id|type|value
 --|----|-----
  1| A  |A-val
  2| B  |B-val
  3| C  |C-val
```

... compared to the text output from the `.mode html`:


```
<table>
<TR><TH>id</TH>
<TH>type</TH>
<TH>value</TH>
</TR>
<TR><TD>1</TD>
<TD>A</TD>
<TD>A-val</TD>
</TR>
<TR><TD>2</TD>
<TD>B</TD>
<TD>B-val</TD>
</TR>
<TR><TD>3</TD>
<TD>C</TD>
<TD>C-val</TD>
</TR>
</table>

```