-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table cell alignment classes are incompatible with bootstrap 5 #785
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Heya, myst-parser does not provide any CSS stylings, this is up to the html theme used. This is in an issue that needs to be raised with sphinx-book-theme. |
This is discussed in the "Aligning cells in Sphinx HTML themes" drop-down |
Thanks for letting me know. I'll reraise the issue or submit a pull request there. The MyST Parser is applying the class names |
- Adds custom CSS for `text-left` and `text-right` classes. These are added to table cells by MyST parser but are not defined in Boostrap 5. [issue](executablebooks/MyST-Parser#785) - Converts the post-lab model parameters table from a list-table to a regular table because list-tables do not support column alignment. - Replaces the deprecated \si command with \qty. Hopefully this will help with compatibility with the LaTeX siunitx package.
Same trouble with PyData Shinx Theme. |
The "left" and "right" cell alignment options are handled by assigning
text-left
ortext-right
classes to the cell. I think this approach was relying on the styling of these classes in bootstrap, but bootstrap 5 removed these classes and replaced them withtext-start
andtext-end
. I'm guessing this was done to support right-to-left languages. The problem is currently visible in the MyST parser documentation..
For a Jupyter book, I've worked around the issue by adding
to
_config.yml
, and then addingto
_static/custom.css
.The text was updated successfully, but these errors were encountered: