Skip to content
Back to skills

1039 Summary Rendering Cheatsheet 87e7ccbd

ASecurity

Context: GitHub’s Markdown renderer wraps loose content in `<p>` tags and modifies markup inside `<summary>`. These tweaks keep the caret aligned and prevent broken first items in collapsible sections.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
documentationgogitapi

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 1039-summary-rendering-cheatsheet_87e7ccbd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 1039 Summary Rendering Cheatsheet 87e7ccbd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 1039 Summary Rendering Cheatsheet 87e7ccbd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-1039-summary-rendering-cheatsheet-87e7ccbd/badge)](https://www.skillsdirectory.com/skills/tools-only-1039-summary-rendering-cheatsheet-87e7ccbd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
## GitHub README collapsible subcategory cheat sheet

Context: GitHub’s Markdown renderer wraps loose content in `<p>` tags and modifies markup inside `<summary>`. These tweaks keep the caret aligned and prevent broken first items in collapsible sections.

- Keep `<summary>` contents on one line with no leading/trailing whitespace; GitHub inserts `<p>` if it sees blank lines.
- Wrap the SVG in a `<picture>` to stop the image from becoming a link target via camo wrapping.
- Use `align="absmiddle"` on the `<img>` to nudge the caret arrow to midline (works on GitHub).
- Put the back-to-top link immediately after the picture inside the same `<span>`; avoid extra spaces or newlines between them.
- Add exactly one blank line after the `<summary>` line so the first resource renders as Markdown, not as raw text.

Minimal pattern that renders correctly on GitHub:

```html
<details id="some-subcategory-">
<summary><span><picture><img src="assets/subheader_some.svg" alt="Some Subcat" align="absmiddle"></picture><a href="#awesome-claude-code">🔝</a></span></summary>

[`Example`](https://example.com) &nbsp; by &nbsp; [Author](https://author.example)

</details>
```

Verification tip: use GitHub’s `/markdown` API with mode `gfm` to preview the rendered HTML without pushing commits. One request per variant is usually enough.***

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.