Skip to content

Add inline block support for Github / NPM badge, tweak labels#97

Open
arcataroger wants to merge 3 commits intomainfrom
feature/inline-github-badge
Open

Add inline block support for Github / NPM badge, tweak labels#97
arcataroger wants to merge 3 commits intomainfrom
feature/inline-github-badge

Conversation

@arcataroger
Copy link
Copy Markdown
Contributor

@arcataroger arcataroger commented Mar 19, 2026

Small improvements to the new badge functionality:

  1. Tweaked Github labels to better support some of our monorepos with very long paths
  2. Added inline block support so it can be used as a span too

Before / After

Long repo names

Structured Text fields — DatoCMS - 2026-03-19 12-26-49 PM

Structured Text fields — DatoCMS - 2026-03-19 12-27-15 PM

Inline blocks

Structured Text and dast format — DatoCMS - 2026-03-19 12-27-55 PM

Structured Text and dast format — DatoCMS - 2026-03-19 12-27-35 PM

@arcataroger arcataroger self-assigned this Mar 19, 2026
@arcataroger arcataroger added the enhancement New feature or request label Mar 19, 2026
@stefanoverna
Copy link
Copy Markdown
Member

Hey @arcataroger, the label tweaks for long monorepo paths (point 1) are a nice improvement 👍

However I'm not a fan of the inline block support (point 2). These GitHub/NPM badges are not meant to be used inline within running text — it looks odd and breaks the reading flow. In the wild, badges like these are always used as a standalone "header" block at the top of READMEs or doc pages, never sprinkled inside paragraphs or list items as spans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants