Skip to content

Touch up Markdown rendering#5034

Merged
mislav merged 3 commits intotrunkfrom
markdown-newlines
Jan 14, 2022
Merged

Touch up Markdown rendering#5034
mislav merged 3 commits intotrunkfrom
markdown-newlines

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Jan 13, 2022

  1. Have all markdown rendering go through a single markdown.Render() function, rather than through a bunch of RenderWith... functions.
  2. Simplify detecting the terminal theme when rendering Markdown.
  3. Preserve hard line breaks from GitHub-flavored Markdown. Fixes Markdown rendering show softbreaks #1110

Ref. https://github.com/charmbracelet/glamour/releases/tag/v0.4.0

@mislav mislav requested a review from a team as a code owner January 13, 2022 18:44
@mislav mislav requested review from samcoe and removed request for a team January 13, 2022 18:44
Copy link
Contributor

@samcoe samcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much cleaner! Thanks for making these changes. I left one non-blocking question.

@mislav mislav enabled auto-merge January 14, 2022 14:44
@mislav mislav merged commit 5c2ee02 into trunk Jan 14, 2022
@mislav mislav deleted the markdown-newlines branch January 14, 2022 14:49
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.

Markdown rendering show softbreaks

2 participants