Skip to content
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

Fix CSS for markdown tables and add optional striped-table extension #384

Merged
merged 4 commits into from
Mar 14, 2022

Conversation

ZedThree
Copy link
Member

@ZedThree ZedThree commented Feb 4, 2022

Note that this will apply to all tables encountered in processing markdown files, except for raw HTML tables

Fixes #373

Note that this will apply to _all_ tables encountered in processing
markdown files, except for raw HTML tables
* master:
  Clean up external project code
  Remove dependency on remote resource for external project test
  type -> isinstance
  Properly deal with extends attribute if it is a FortranType in generating the export for external project references.
  Add missing test for md_environ
  Update deprecated methods in md_environ
  Apply black to md_environ
  Replace PyPI package of md_environ with vendored version
  Replace vendored `mdx_math` with PyPI package
Also change implementation to just apply "table-striped" CSS class
@ZedThree
Copy link
Member Author

This now applies a minimal fix for the tables CSS to ensure they don't completely collapse horizontally.

The "zebra rows" is now an extension that can be enabled by adding:

md_extensions: ford.md_striped_table

to your project config.

@ZedThree ZedThree changed the title Add CSS for zebra rows to markdown tables Fix CSS for markdown tables and add optional striped-table extension Mar 14, 2022
@ZedThree ZedThree merged commit a981130 into master Mar 14, 2022
@ZedThree ZedThree deleted the fix-table-css branch March 14, 2022 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ugly tables in markdown pages
1 participant