timvink / mkdocs-table-reader-plugin

MkDocs plugin that enables a markdown tag like {{ read_csv('table.csv') }} to directly insert various table formats into a page
https://timvink.github.io/mkdocs-table-reader-plugin/
MIT License
111 stars 18 forks source link

Excel files right aligned by default #24

Closed smholvoet closed 2 years ago

smholvoet commented 2 years ago

Hi 👋

Was just wondering whether there is a way to left align the contents of Excel files (similar to how CSV files get rendered)?

Excel: image

mkdocs: image

Thanks!

timvink commented 2 years ago

Hello !

I looked into this, and it wasn't possible but should be. I added the functionality and was inspired to re-write the entire documentation and call it a new major release :)

Checkout the new docs (https://timvink.github.io/mkdocs-table-reader-plugin/) and let me know if it works for you :)

smholvoet commented 2 years ago

Seems like my particular issue was related to me not realizing that tabulate was responsible for the default column alignment, and changes whether the column contains numbers (right aligned) or just text (left aligned).

I've made some small changes to the docs (see #25) to clarify this for users who might run into a similar issue in the future.