Closed marek-mihok closed 7 months ago
@marek-mihok there is no need to add the whole Tailwind. The issue talks about adding only styles from https://tailwindcss.com/docs/typography-plugin
.
- Can you please add an example with all the markdown elements for a side by side comparison?
I've updated the existing example with side by side comparison. Please let me know if it is fine.
- Seems like the new styles are pretty spacious. Let's add
compact
attribute defaulting totrue
to toggle this behavior.
Done ✅
- Can the added CSS be loaded dynamically (only when markdown card is actually used)?
Done ✅
@mturoci since this is a visual change, do we need tests checking if proper styling is applied when compact=False
?
The PR fulfills these requirements: (check all the apply)
main
branch.feat: Add a button #xxx
, where "xxx" is the issue number).Closes #xxx
, where "xxx" is the issue number.ui
folder, unit tests (make test
) still pass.This change allows using
compact=False
attribute to toggle on a modern, well-structured and reader-friendly markdown look!https://github.com/h2oai/wave/assets/23740173/cdae1e2c-58d9-4799-aaa0-5fe3a1fda185
Updated API is as follows:
In addition, this PR fixes an issue where there was a conflict when using multiple markdown cards on the same page.
Closes #2179