Skip to content

Markdown text color#3193

Open
EmmanuelDodoo wants to merge 2 commits intoiced-rs:masterfrom
EmmanuelDodoo:markdown-color
Open

Markdown text color#3193
EmmanuelDodoo wants to merge 2 commits intoiced-rs:masterfrom
EmmanuelDodoo:markdown-color

Conversation

@EmmanuelDodoo
Copy link
Contributor

This PR adds an option for setting the text color of rendered markdown. markdown::Style has been updated to include two new fields, text_color to set the color for basic text and strong_color for strong and emphasized text color

@EmmanuelDodoo
Copy link
Contributor Author

Ideally, there would be some granularity in assigning text colors so a single rendered markdown could have paragraphs with different colors.

I attempted this approach by having markdown::Text pass its color to rich_text but that meant requiring the additional bound from rich_text::color_maybe. My proposed solution is to add an additional text_color method to text::Catalog to remove the need for extra bounds though I wanted to discuss the idea before moving forward.

@EmmanuelDodoo EmmanuelDodoo changed the title Markdown color Markdown text color Jan 10, 2026
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.

1 participant