Closed HaveF closed 1 year ago
Oh, the sql part is also not right... there should no sql
before SELECT
SELECT
date(date) as day,
count(*) as count
FROM offers_view
GROUP BY day
ORDER BY day
Thanks @HaveF for catching and reporting this issue!
But when display in dashboars, there is no * before list items
Indeed, there seem to be an issue with the Markdown rendering. I'll look for the culprit and see if I can fix it.
Oh, the sql part is also not right... there should no sql before SELECT
Mmmh interesting, this means the Markdown rendering does not support properly code blocks with language syntax highlighting (it could be rendered all monospace black but still skip the language information)
Ok I found out some interesting styling implementation details.
Here is the default style concerning ordered and unordered list in Datasette:
ol,
ul {
list-style: none;
}
However, this is overriden by this style when displaying query results:
.rows-and-columns td ol,
.rows-and-columns td ul {
list-style: initial;
list-style-position: inside;
}
We might have to override this using the Datasette Dashboard stylesheet to restore bullet and numbered list only for the Markdown chart component.
Could it possible add class (It's a generated class name)col-demo_markdown
?
I notice you use render_markdown
function, but why it not works...
How about {% markdown %}...{% endmarkdown %}
?
Hi, 😄
I found that markdown didn't show quite consistently.
But when display in dashboars, there is no
*
before list items