Skip to content

fix(editor): remove underline beneath markdown h1/h2 headings#1696

Merged
AmethystLiang merged 1 commit into
mainfrom
markdown-headings-no-underscore
May 11, 2026
Merged

fix(editor): remove underline beneath markdown h1/h2 headings#1696
AmethystLiang merged 1 commit into
mainfrom
markdown-headings-no-underscore

Conversation

@AmethystLiang
Copy link
Copy Markdown
Contributor

@AmethystLiang AmethystLiang commented May 11, 2026

Summary

  • H2 headings in markdown preview and rich editor rendered with a thin border-bottom rule beneath them
  • Exported H1 and H2 headings had the same underline treatment via hardcoded styles in export-css.ts
  • Removes border-bottom and padding-bottom from all three locations so headings sit flush with following content

Test plan

  • Open a markdown note with H1 and H2 headings — confirm no underline appears in preview
  • Open a note in rich editor mode — confirm H2 headings have no bottom border
  • Export a note to HTML/PDF — confirm exported H1/H2 headings have no underline

Made with Orca 🐋

H2 (and exported H1) headings rendered with a thin border below them;
this removes the rule so headings sit flush with following content.

Co-authored-by: Orca <help@stably.ai>
@AmethystLiang AmethystLiang merged commit 68892b6 into main May 11, 2026
3 checks passed
@AmethystLiang AmethystLiang deleted the markdown-headings-no-underscore branch May 11, 2026 17:09
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