Merge pull request #228 from gamosoft/features/table-alignment

cell alignments
This commit is contained in:
Guillermo Villar 2026-06-01 15:52:22 +02:00 committed by GitHub
commit 28dc6d7d7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -550,6 +550,9 @@ def generate_export_html(
padding: 0.5em 1em;
text-align: left;
}}
.markdown-preview th[align="left"], .markdown-preview td[align="left"] {{ text-align: left; }}
.markdown-preview th[align="right"], .markdown-preview td[align="right"] {{ text-align: right; }}
.markdown-preview th[align="center"], .markdown-preview td[align="center"] {{ text-align: center; }}
.markdown-preview th {{
background-color: var(--bg-secondary, #f6f8fa);

View File

@ -432,6 +432,9 @@
padding: 0.75rem 1rem;
text-align: left;
}
.markdown-preview th[align="left"], .markdown-preview td[align="left"] { text-align: left; }
.markdown-preview th[align="right"], .markdown-preview td[align="right"] { text-align: right; }
.markdown-preview th[align="center"], .markdown-preview td[align="center"] { text-align: center; }
.markdown-preview th {
background-color: var(--bg-tertiary);
font-weight: 600;