Skip to content

fix(ui): make markdown <hr> visible using --markdown-horizontal-rule token#26497

Open
chofuhoyu wants to merge 1 commit intoanomalyco:devfrom
chofuhoyu:fix/markdown-hr-visible
Open

fix(ui): make markdown <hr> visible using --markdown-horizontal-rule token#26497
chofuhoyu wants to merge 1 commit intoanomalyco:devfrom
chofuhoyu:fix/markdown-hr-visible

Conversation

@chofuhoyu
Copy link
Copy Markdown

Issue for this PR

Closes #25116

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Having a horizontal rule is very common in markdown rendering. I changed the default <hr> CSS elements to make it work as expected, not a blank gap.

I also utilize the --markdown-horizontal-rule token for this color to make themes able to change the color of the horizontal rule.

How did you verify your code works?

I built and ran opencode locally. All in all those CSS changes won't actually break any logic.

Screenshots / recordings

Before
Without a horizontal ruler

After
With a horizontal ruler

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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.

[FEATURE]: Make markdown <hr> rendered from ---/*** visible and configurable

1 participant