From b2cc511ce6ffe439d53dca6add5cffa390fb3c12 Mon Sep 17 00:00:00 2001 From: Jonas Konrad Date: Fri, 25 Sep 2026 20:17:45 +0200 Subject: [PATCH] Render README tables on the website Enable mistune's table plugin and add basic table styling. Co-Authored-By: Claude Opus 5.5 --- docs/justfile | 2 +- docs/markdown.css | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/justfile b/docs/justfile index 380cd25f..87763d1b 100644 --- a/docs/justfile +++ b/docs/justfile @@ -61,7 +61,7 @@ template NAME TAG: (repo TAG) selected_version='{{TAG}}', selected_version_actual=selected_version_actual, path_javadoc='{{path_javadoc}}', - readme=lambda: mistune.create_markdown(renderer=PygmentsRenderer())(open('{{build}}/repo/lz4-java-{{TAG}}/README.md').read()), + readme=lambda: mistune.create_markdown(renderer=PygmentsRenderer(), plugins=['table'])(open('{{build}}/repo/lz4-java-{{TAG}}/README.md').read()), pygments_style=lambda: html_formatter.get_style_defs() )) diff --git a/docs/markdown.css b/docs/markdown.css index 915208e9..a8966520 100644 --- a/docs/markdown.css +++ b/docs/markdown.css @@ -35,4 +35,14 @@ html { #lz4-header .outdated { background-color: #aa0000; color: #fff; -} \ No newline at end of file +} +table { + border-collapse: collapse; +} +th, td { + border: 1px solid #ccc; + padding: 0.3em 0.6em; +} +th { + background: #eee; +}