Skip to content

fix: Markdown rendering in the annotation component/widget has visual issues with heading sizes#3549

Open
cursor[bot] wants to merge 1 commit intomainfrom
cursor/annotation-heading-sizes-c6df
Open

fix: Markdown rendering in the annotation component/widget has visual issues with heading sizes#3549
cursor[bot] wants to merge 1 commit intomainfrom
cursor/annotation-heading-sizes-c6df

Conversation

@cursor
Copy link
Contributor

@cursor cursor bot commented Mar 20, 2026

Summary

Fixes the markdown heading size hierarchy in the annotation component/widget. Heading levels (#, ##, ###) were not visually distinct — h2 and h3 both rendered at text-sm (14px), making the heading hierarchy unclear.

Changes

Updated heading styles in web_src/src/ui/annotationComponent/index.tsx to match the established pattern from WorkflowMarkdownPreview:

Level Before After
h1 text-base font-bold (16px) text-lg font-semibold (18px)
h2 text-sm font-bold (14px) text-base font-semibold (16px)
h3 text-sm font-semibold (14px) text-sm font-semibold (14px, unchanged)
h4 (not supported) text-sm font-medium (14px, added)

This creates a clear visual hierarchy: h1 > h2 > h3 > h4, consistent with other markdown rendering components in the application.

Closes #3490

Open in Web Open in Cursor 

Align heading hierarchy in the annotation widget with the established
pattern used in WorkflowMarkdownPreview:
- h1: text-lg font-semibold (was text-base font-bold)
- h2: text-base font-semibold (was text-sm font-bold)
- h3: text-sm font-semibold (unchanged)
- h4: text-sm font-medium (added)

This fixes the visual issue where heading levels were not visually
distinct, with h2 and h3 rendering at the same size.

Closes #3490
@superplanehq-integration
Copy link

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

@AleksandarCole
Copy link
Collaborator

/sp start

@superplanehq-integration
Copy link

✅ Ready.

Web: https://pr-3549-ephemeral.superplane.com
SSH: ssh -o StrictHostKeyChecking=no app@178.104.28.255
Logs: ssh -o StrictHostKeyChecking=no app@178.104.28.255 'cd superplane && make dev.logs.app'

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 in the annotation component/widget has visual issues with heading sizes

2 participants