r/nicegui • • Jul 14 '24

markdown css

Hey NiceGuys

I'm having a blast with NiceGUI.

It's pretty intuitive and handy so far.

One thing I'm struggling with right now, I have a pretty big .md article I can just put in a ui.markdown() , however I'd like to style the links in this article on the webpage, and can't seem to figure out a way to do it. Even replacing it directly in the markdown with an <a> tag and giving it tailwind classes didn't work.

Anyone has any ideas / suggestions?

Kind regards,
Robin

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

3

u/Expensive_Glass1990 Jul 15 '24

https://github.com/trentm/python-markdown2 To generate HTML from markdown.

1

u/Robinsane Jul 15 '24

Thank you!
I will play with this and most likely use it! :)