From 8e3501cb4256cc6c02f7c1e547941ab6d91f773f Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 05:12:43 +0000 Subject: [PATCH 01/12] feat(skills): add github-markdown skill for GitHub-only Markdown A short SKILL.md (when to use GitHub features vs plain Markdown, a quick reference for alerts, footnotes, heading anchors, line breaks, autolinks, mentions and closing keywords) with reference files for raw HTML, diagrams and math, and autolink forms. Tested with and without the skill on a subagent; the baseline got heading anchors wrong. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- AGENTS.md | 3 +- README.md | 1 + skills.sh.json | 3 +- skills/github-markdown/SKILL.md | 55 ++++++++++++++++ .../github-markdown/references/autolinks.md | 36 +++++++++++ .../references/diagrams-math.md | 27 ++++++++ skills/github-markdown/references/html.md | 64 +++++++++++++++++++ skills/index.json | 10 +++ 8 files changed, 197 insertions(+), 2 deletions(-) create mode 100644 skills/github-markdown/SKILL.md create mode 100644 skills/github-markdown/references/autolinks.md create mode 100644 skills/github-markdown/references/diagrams-math.md create mode 100644 skills/github-markdown/references/html.md diff --git a/AGENTS.md b/AGENTS.md index cec01cc..d1af12b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -42,7 +42,8 @@ only skills; commands, agents or hooks may follow. Apache-2.0, ...). List any local edit to a copied skill in `NOTICE`. Before adding, read the whole skill: no hidden instructions, no `curl | sh`, no unexpected hosts. - **Skills written here** (`github-pages`, `github-apps`, `repo-badges`, - `github-mcp-config`, `security-advisories`, `workflows-actions-reuse`): only for a topic with + `github-mcp-config`, `security-advisories`, `workflows-actions-reuse`, + `github-markdown`): only for a topic with no upstream skill worth copying. They are MIT under the repo's `LICENSE`, so they have no `LICENSE.txt`, `metadata.upstream` or `NOTICE` entry, and the upstream sync skips them. Before merging a new one or a large change, test it the superpowers `writing-skills` way: give the same tasks diff --git a/README.md b/README.md index 5fed702..83c4b63 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ may follow. | `pull-request-code-review` | Reviewing someone else's PR: reading the diff in context, a batched pending review with line comments, choosing the verdict (GitHub MCP tools) | [github/github-mcp-server](https://github.com/github/github-mcp-server) | | `pull-request-review-feedback` | Working through review threads on your PR: decide, reply, resolve only what is settled (GitHub MCP tools) | [github/github-mcp-server](https://github.com/github/github-mcp-server) | | `repo-badges` | README badges: GitHub status badges, shields.io static badges and logos (Simple Icons, svgl fallback), and badges rendered in CI with a pinned renderer onto an orphan `badges` branch, with no badge service | this repo | +| `github-markdown` | GitHub-only Markdown: when to use it vs plain Markdown, alerts, footnotes, heading anchors, where `#123` and SHAs autolink, mentions, closing keywords, stripped HTML, `
`, ``, Mermaid and math | this repo | | `github-mcp-config` | Adding GitHub's official MCP server when a skill needs its tools and none is configured: check for an existing one, remote (PAT, or OAuth on Copilot hosts) vs local (OAuth without a token), per-harness token syntax, toolsets and read-only | this repo | | `security-advisories` | Handling vulnerabilities on GitHub: private vulnerability reporting, SECURITY.md, editing the reported draft advisory, temporary private fork, CVE request, credits, publishing, when Dependabot alerts, reporting upstream | this repo | | `gh-attach` | Uploading screenshots and files to PRs, issues and comments, and downloading attachments, with the `gh attach` extension | [sudosubin/gh-attach](https://github.com/sudosubin/gh-attach) | diff --git a/skills.sh.json b/skills.sh.json index b54dc2b..54e2b4a 100644 --- a/skills.sh.json +++ b/skills.sh.json @@ -50,10 +50,11 @@ }, { "title": "Repositories and hosting", - "description": "Pages, README badges and Codespaces.", + "description": "Pages, README writing and badges, and Codespaces.", "skills": [ "github-pages", "repo-badges", + "github-markdown", "github-codespaces-efficiency" ] } diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md new file mode 100644 index 0000000..60fd88f --- /dev/null +++ b/skills/github-markdown/SKILL.md @@ -0,0 +1,55 @@ +--- +name: github-markdown +description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords,
, for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' +metadata: + version: "0.1.0" +--- + +# GitHub Markdown + +Plain CommonMark is assumed knowledge. This covers only what github.com adds or changes. + +## GFM or plain Markdown? + +Go down the list and stop at the first match: + +1. The user, AGENTS.md or CLAUDE.md says which to use: do that. +2. The repo's root `README.md`: use GitHub features where they help. +3. Text shown only on github.com (issue and PR bodies, comments, discussions, release notes, + `.github/ISSUE_TEMPLATE/*`, `.github/pull_request_template.md`): use GitHub features. +4. Any other Markdown file (`docs/`, `CHANGELOG.md`, `AGENTS.md`, `SKILL.md`, anything a site + generator or another tool renders): tables, strikethrough, task lists and bare URLs only. + No alerts, footnotes, Mermaid, math, `
` or other github.com-only features. + +Creating a new README or template under rule 2 or 3 with nothing under rule 1: write it with +GitHub features and ask the user in one line whether that is OK. + +## Quick reference (github.com only unless noted) + +| Feature | Syntax and gotchas | +|---|---| +| Alerts | `> [!NOTE]`, `[!TIP]`, `[!IMPORTANT]`, `[!WARNING]`, `[!CAUTION]` on the first quote line. One or two per page, not nested. | +| Footnotes | `text[^1]` and `[^1]: note` anywhere; rendered at the bottom. Not in wikis. | +| Heading anchors | Lowercase; **every word kept**; each space becomes `-`; other punctuation dropped (so ` & ` leaves `--`); formatting markers removed; non-ASCII letters kept; repeats get `-1`, `-2`. `## Use a _CLI_ & the API, v2!` is `#use-a-cli--the-api-v2`. | +| Line breaks | In `.md` files a single newline is not a break (end the line with `\` or two spaces). In issues, PRs and comments it is. | +| Underline, sub, sup | ``, ``, `` | +| Relative links | Resolve against the current branch; `/` starts at the repo root. Prefer them for repo files and images. | +| Task lists (all renderers) | `- [ ]`, `- [x]`; escape a leading paren: `- [ ] \(Optional)`. | +| Tables (all renderers) | Blank line before; `---` per column; escape `\|`, even inside code spans. | + +## References, mentions and keywords + +- `#26`, `GH-26`, `owner/repo#26`, a full SHA and `owner/repo@sha` autolink **only in issues, + PRs, discussions and comments**. In repo files and wikis they are plain text: write explicit + links. +- `@name` and `@org/team` notify people. Put non-user `@` text (`@types/node`, npm scopes) in + backticks. +- `Closes #N` (also close/fix/resolve in any tense) in a PR body closes the issue on merge. + +## More detail + +- Raw HTML, what github.com strips, `
`, ``, centering and image sizing: + [references/html.md](references/html.md) +- Mermaid, maps, STL, math, code fences: [references/diagrams-math.md](references/diagrams-math.md) +- All autolink forms, unfurling, backlinks, label chips, color chips: + [references/autolinks.md](references/autolinks.md) diff --git a/skills/github-markdown/references/autolinks.md b/skills/github-markdown/references/autolinks.md new file mode 100644 index 0000000..34b459e --- /dev/null +++ b/skills/github-markdown/references/autolinks.md @@ -0,0 +1,36 @@ +# Autolinks, references and mentions on GitHub + +## Where they work + +Issue, PR, discussion and commit-message text. **Not** in repo files (README.md included) or +wikis, which only autolink bare URLs (`https://...`, `www....`): there, write explicit links. + +## Forms + +| Write | Links to | +|---|---| +| `#26`, `GH-26` | issue or PR 26 in this repo | +| `owner/repo#26` | issue or PR in another repo | +| full 40-char SHA, or a 7+ char prefix | commit in this repo | +| `user@sha`, `owner/repo@sha` | commit in a fork or another repo | +| issue, PR or commit URL | shortened to the forms above | +| `https://github.com/o/r/labels/name` | label chip (same repo only; not if the name has a `.`) | +| `` `#0969DA` ``, `` `rgb(9,105,218)` ``, `` `hsl(212,92%,45%)` `` | color swatch (issues, PRs, discussions only; no spaces inside the backticks) | + +Custom autolinks (JIRA keys and so on) work only if a repo admin configured them. + +## Behavior to expect + +- A reference that is the whole text of a list item unfurls to the title and state. +- Linking an issue or PR creates a backlink on the target. Use + `https://redirect.github.com/...` instead of `https://github.com/...` to avoid it (not on + `ghe.com` data-residency hosts). +- `@user` and `@org/team` notify them (only if they can read the repo); editing a mention into + a comment also notifies. Backtick any `@` text that is not a person to notify. + +## Keywords + +- In a PR body (or a commit on the default branch): `close`, `closes`, `closed`, `fix`, + `fixes`, `fixed`, `resolve`, `resolves`, `resolved` + `#N` or `owner/repo#N` closes the issue + on merge. Repeat the keyword for each issue: `Closes #1, closes #2`. +- `Duplicate of #N` as a comment marks a duplicate. diff --git a/skills/github-markdown/references/diagrams-math.md b/skills/github-markdown/references/diagrams-math.md new file mode 100644 index 0000000..eacb41a --- /dev/null +++ b/skills/github-markdown/references/diagrams-math.md @@ -0,0 +1,27 @@ +# Diagrams, math and code fences on GitHub + +All of these render in `.md` files, issues, PRs, discussions and wikis. Other renderers mostly +show them as plain code blocks. + +## Diagrams and maps (fence language decides) + +| Fence | Renders | +|---|---| +| `mermaid` | Mermaid diagram (flowchart, sequence, pie, ...). A block holding only `info` shows the Mermaid version GitHub runs. | +| `geojson`, `topojson` | Interactive map | +| `stl` | 3D model viewer (ASCII STL) | + +## Math (MathJax) + +- Inline: `$x^2$`, or `` $`x_1 * y_1`$ `` when the expression contains Markdown characters. +- Block: `$$...$$` on its own line(s), or a ```` ```math ```` fence (no `$$` needed). +- A literal `$` inside an expression: `\$`. Outside one but on the same line: + `$`. +- In `.md` files, text right before an inline-started `$$` block needs a line break (`\`). + +## Code fences + +- Highlighting uses Linguist language names (`ruby`, `sh`, `powershell`). Use lower-case names + if the file also builds on GitHub Pages (Jekyll). +- Show a fence inside a fence by using a longer one outside (four backticks around three). +- Indented (non-fenced) code inside a list item needs eight spaces. diff --git a/skills/github-markdown/references/html.md b/skills/github-markdown/references/html.md new file mode 100644 index 0000000..59f7c5e --- /dev/null +++ b/skills/github-markdown/references/html.md @@ -0,0 +1,64 @@ +# Raw HTML in GitHub Markdown + +## What github.com removes + +github.com sanitizes rendered Markdown much harder than the GFM spec's tag filter (which only +escapes ` <textarea> <style> <xmp> <iframe> <noembed> <noframes> <script> <plaintext>`). +On github.com, also gone from the output: + +- `<script>`, `<style>`, `<iframe>`, forms and inputs, event handlers (`onclick` ...). +- `style` and `class` attributes: no colors, fonts or custom layout. +- HTML comments `<!-- -->` and processing instructions `<?...?>`: hidden, so they work as + invisible notes or markers. + +What survives: structural tags such as `<div>`, `<p>`, `<a>`, `<img>`, `<table>`, `<details>`, +`<summary>`, `<picture>`, `<source>`, `<kbd>`, `<sub>`, `<sup>`, `<ins>`, `<br>`, plus `align`, +`width`, `height`, `alt`, `href`, `src`, `name` and similar plain attributes. Test anything else +in a preview before relying on it. + +## Markdown inside HTML + +Markdown inside a block HTML element renders only after a blank line following the opening tag +(and before the closing tag): + +```markdown +<div align="center"> + +# Title + +</div> +``` + +## Collapsed sections + +```markdown +<details> +<summary>Install on Windows</summary> + +Steps in **Markdown** here (the blank line above matters). + +</details> +``` + +`<details open>` starts expanded. + +## Dark and light mode images + +```markdown +<picture> + <source media="(prefers-color-scheme: dark)" srcset="assets/logo-dark.png"> + <img src="assets/logo-light.png" alt="Project logo" width="200"> +</picture> +``` + +The `<img>` is the fallback for light mode and for other renderers. + +## Centering and sizing + +- Center with `<p align="center">` or `<div align="center">` (CSS is stripped). +- Size images with `<img width="...">`; Markdown `![]()` cannot set a size. + +## Custom anchors + +`<a name="my-anchor"></a>` makes a link target `#my-anchor`. It is not listed in the file's +outline and does not affect heading anchor numbering. diff --git a/skills/index.json b/skills/index.json index 3dca3ff..1637981 100644 --- a/skills/index.json +++ b/skills/index.json @@ -134,6 +134,16 @@ "references/templates.md" ] }, + { + "name": "github-markdown", + "version": "0.1.0", + "files": [ + "SKILL.md", + "references/autolinks.md", + "references/diagrams-math.md", + "references/html.md" + ] + }, { "name": "github-mcp-config", "version": "0.1.3", From daf4ed568ae605978c40244225cd794a1d9e0a16 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 05:15:01 +0000 Subject: [PATCH 02/12] docs(skills): base github-markdown's HTML reference on html-pipeline's sanitizer List the kept tags and attributes, unwrapping of removed tags, URL scheme limits and the id caveat from html-pipeline's SanitizationFilter (v2.14.3 and v3), the public basis of github.com's sanitizer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/references/html.md | 27 +++++++++++++++-------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/skills/github-markdown/references/html.md b/skills/github-markdown/references/html.md index 59f7c5e..5606f9f 100644 --- a/skills/github-markdown/references/html.md +++ b/skills/github-markdown/references/html.md @@ -4,17 +4,26 @@ github.com sanitizes rendered Markdown much harder than the GFM spec's tag filter (which only escapes `<title> <textarea> <style> <xmp> <iframe> <noembed> <noframes> <script> <plaintext>`). -On github.com, also gone from the output: - -- `<script>`, `<style>`, `<iframe>`, forms and inputs, event handlers (`onclick` ...). -- `style` and `class` attributes: no colors, fonts or custom layout. -- HTML comments `<!-- -->` and processing instructions `<?...?>`: hidden, so they work as +github.com then runs an allow-list sanitizer (its public basis is `html-pipeline`'s +`SanitizationFilter`; production may differ slightly, so preview anything unusual): + +- **Tags not on the list are removed but their text is kept**: `<center>`, `<font>`, `<u>`, + `<button>`, forms and `<input>`, `<svg>`, `<style>` ... `<script>` is removed with its content. +- **Attributes not on the list are removed**: `style`, `class`, event handlers (`onclick` ...). + So no colors, fonts or CSS layout. Don't rely on `id` for link targets; use `<a name>`. +- **Unsafe URLs are removed**: `href` keeps `http`, `https`, `mailto` and relative links (no + `javascript:`); `img src` keeps only `http`, `https` and relative (no `data:` images). +- `<li>` outside a list and table cells outside a `<table>` lose their tag. +- HTML comments `<!-- -->` and processing instructions `<?...?>` are hidden, so they work as invisible notes or markers. -What survives: structural tags such as `<div>`, `<p>`, `<a>`, `<img>`, `<table>`, `<details>`, -`<summary>`, `<picture>`, `<source>`, `<kbd>`, `<sub>`, `<sup>`, `<ins>`, `<br>`, plus `align`, -`width`, `height`, `alt`, `href`, `src`, `name` and similar plain attributes. Test anything else -in a preview before relying on it. +Tags kept: `h1`-`h6 p div span br hr a img picture source b i strong em s strike del ins sub sup +mark small abbr kbd code pre samp var tt q blockquote cite dfn time ruby rt rp ul ol li dl dt dd +table caption thead tbody tfoot tr th td details summary figure figcaption bdo wbr`. + +Plain attributes kept on any of them include `align`, `width`, `height`, `alt`, `title`, +`name`, `lang`, `dir`, `colspan`, `rowspan`, `open`, `media`, `aria-label`; plus `href` on `a`, +`src` on `img`, `srcset` on `source`. ## Markdown inside HTML From 8e2df9d31fbb31507b2263b6c9d7b1baa924f645 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 05:32:41 +0000 Subject: [PATCH 03/12] fix(skills): bump github-markdown to 0.1.1 for the html.md update Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 2 +- skills/index.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index 60fd88f..f84903d 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.1.0" + version: "0.1.1" --- # GitHub Markdown diff --git a/skills/index.json b/skills/index.json index 1637981..87c8981 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.1.0", + "version": "0.1.1", "files": [ "SKILL.md", "references/autolinks.md", From e65919539cfe0b658994c6b83b72861c9cf012c0 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 05:58:27 +0000 Subject: [PATCH 04/12] docs(skills): github-markdown: references need the target to exist first Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 2 +- skills/github-markdown/references/autolinks.md | 4 ++++ skills/index.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index f84903d..8202ad4 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.1.1" + version: "0.1.2" --- # GitHub Markdown diff --git a/skills/github-markdown/references/autolinks.md b/skills/github-markdown/references/autolinks.md index 34b459e..741ab61 100644 --- a/skills/github-markdown/references/autolinks.md +++ b/skills/github-markdown/references/autolinks.md @@ -19,6 +19,10 @@ wikis, which only autolink bare URLs (`https://...`, `www....`): there, write ex Custom autolinks (JIRA keys and so on) work only if a repo admin configured them. +**Create the target first.** A reference links only if the issue or PR (in that repo, for +`owner/repo#N`) already exists when the comment is posted or the commit is pushed. Creating it +later does not link the earlier text, so open the issue before writing `#N` or `Closes #N`. + ## Behavior to expect - A reference that is the whole text of a list item unfurls to the title and state. diff --git a/skills/index.json b/skills/index.json index 87c8981..066e6de 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.1.1", + "version": "0.1.2", "files": [ "SKILL.md", "references/autolinks.md", From 1152b6057a0102c84c8bbc996801e065032b9c42 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 06:29:32 +0000 Subject: [PATCH 05/12] fix(skills): github-markdown: one closing keyword covers a comma list Tested on a real PR: 'Closes #1, #2' links both issues; 'and', doubled commas or a keyword after the references end the list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 2 +- skills/github-markdown/references/autolinks.md | 4 +++- skills/index.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index 8202ad4..a2dee04 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.1.2" + version: "0.1.3" --- # GitHub Markdown diff --git a/skills/github-markdown/references/autolinks.md b/skills/github-markdown/references/autolinks.md index 741ab61..1e5e057 100644 --- a/skills/github-markdown/references/autolinks.md +++ b/skills/github-markdown/references/autolinks.md @@ -36,5 +36,7 @@ later does not link the earlier text, so open the issue before writing `#N` or ` - In a PR body (or a commit on the default branch): `close`, `closes`, `closed`, `fix`, `fixes`, `fixed`, `resolve`, `resolves`, `resolved` + `#N` or `owner/repo#N` closes the issue - on merge. Repeat the keyword for each issue: `Closes #1, closes #2`. + on merge. One keyword covers a comma-separated list on the same line: `Closes #1, #2`. + Anything else ends the list: `Closes #1 and #2` closes only #1, a doubled comma drops the + next issue, and a keyword after the references (`#1, #2 closes them`) closes none. - `Duplicate of #N` as a comment marks a duplicate. diff --git a/skills/index.json b/skills/index.json index 066e6de..c3cccc3 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.1.2", + "version": "0.1.3", "files": [ "SKILL.md", "references/autolinks.md", From 25eaa7f2709f4adbccec166629f303fd39d6c553 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 06:49:37 +0000 Subject: [PATCH 06/12] docs(skills): github-markdown: prefixed refs don't link; spaced commas do Tested on GitHub: 'pr#3' and 'issue#1' stay plain text, and 'Fix #1 , #2' links and closes both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 2 +- skills/github-markdown/references/autolinks.md | 4 +++- skills/index.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index a2dee04..6427e05 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.1.3" + version: "0.1.4" --- # GitHub Markdown diff --git a/skills/github-markdown/references/autolinks.md b/skills/github-markdown/references/autolinks.md index 1e5e057..5ea1d43 100644 --- a/skills/github-markdown/references/autolinks.md +++ b/skills/github-markdown/references/autolinks.md @@ -17,6 +17,7 @@ wikis, which only autolink bare URLs (`https://...`, `www....`): there, write ex | `https://github.com/o/r/labels/name` | label chip (same repo only; not if the name has a `.`) | | `` `#0969DA` ``, `` `rgb(9,105,218)` ``, `` `hsl(212,92%,45%)` `` | color swatch (issues, PRs, discussions only; no spaces inside the backticks) | +Only these forms link: prefixed forms such as `pr#3` or `issue#1` stay plain text. Custom autolinks (JIRA keys and so on) work only if a repo admin configured them. **Create the target first.** A reference links only if the issue or PR (in that repo, for @@ -36,7 +37,8 @@ later does not link the earlier text, so open the issue before writing `#N` or ` - In a PR body (or a commit on the default branch): `close`, `closes`, `closed`, `fix`, `fixes`, `fixed`, `resolve`, `resolves`, `resolved` + `#N` or `owner/repo#N` closes the issue - on merge. One keyword covers a comma-separated list on the same line: `Closes #1, #2`. + on merge. One keyword covers a comma-separated list on the same line: `Closes #1, #2` (spaces + around the comma are fine). Anything else ends the list: `Closes #1 and #2` closes only #1, a doubled comma drops the next issue, and a keyword after the references (`#1, #2 closes them`) closes none. - `Duplicate of #N` as a comment marks a duplicate. diff --git a/skills/index.json b/skills/index.json index c3cccc3..6f15d07 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.1.3", + "version": "0.1.4", "files": [ "SKILL.md", "references/autolinks.md", From 2bec877124a93e1e2ef72c26f08d9d756a6d4ac0 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 06:49:51 +0000 Subject: [PATCH 07/12] docs(skills): github-markdown: keywords in a PR's commits count too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 2 +- skills/github-markdown/references/autolinks.md | 2 +- skills/index.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index 6427e05..035e5cb 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.1.4" + version: "0.1.5" --- # GitHub Markdown diff --git a/skills/github-markdown/references/autolinks.md b/skills/github-markdown/references/autolinks.md index 5ea1d43..1299de0 100644 --- a/skills/github-markdown/references/autolinks.md +++ b/skills/github-markdown/references/autolinks.md @@ -35,7 +35,7 @@ later does not link the earlier text, so open the issue before writing `#N` or ` ## Keywords -- In a PR body (or a commit on the default branch): `close`, `closes`, `closed`, `fix`, +- In a PR body, a commit message in the PR, or a commit pushed to the default branch: `close`, `closes`, `closed`, `fix`, `fixes`, `fixed`, `resolve`, `resolves`, `resolved` + `#N` or `owner/repo#N` closes the issue on merge. One keyword covers a comma-separated list on the same line: `Closes #1, #2` (spaces around the comma are fine). diff --git a/skills/index.json b/skills/index.json index 6f15d07..618f050 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.1.4", + "version": "0.1.5", "files": [ "SKILL.md", "references/autolinks.md", From e5402893b798ae4aebd1fff26212b65110df3307 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 07:16:02 +0000 Subject: [PATCH 08/12] docs(skills): github-markdown: prefer visible line breaks and explicit links From review: end lines with a backslash rather than two invisible spaces, and write [label](url) or <url> instead of relying on bare-URL autolinks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 5 +++-- skills/github-markdown/references/autolinks.md | 1 + skills/index.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index 035e5cb..f192b0e 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.1.5" + version: "0.1.6" --- # GitHub Markdown @@ -31,7 +31,8 @@ GitHub features and ask the user in one line whether that is OK. | Alerts | `> [!NOTE]`, `[!TIP]`, `[!IMPORTANT]`, `[!WARNING]`, `[!CAUTION]` on the first quote line. One or two per page, not nested. | | Footnotes | `text[^1]` and `[^1]: note` anywhere; rendered at the bottom. Not in wikis. | | Heading anchors | Lowercase; **every word kept**; each space becomes `-`; other punctuation dropped (so ` & ` leaves `--`); formatting markers removed; non-ASCII letters kept; repeats get `-1`, `-2`. `## Use a _CLI_ & the API, v2!` is `#use-a-cli--the-api-v2`. | -| Line breaks | In `.md` files a single newline is not a break (end the line with `\` or two spaces). In issues, PRs and comments it is. | +| Line breaks | In `.md` files a single newline is not a break: end the line with `\` (visible). Avoid two trailing spaces, which work but are invisible in most editors. In issues, PRs and comments a newline is a break. | +| Links | Write `[label](url)`. Use `<https://...>` only when the label should be the URL itself. Never leave a bare URL, even where GitHub would autolink it. | | Underline, sub, sup | `<ins>`, `<sub>`, `<sup>` | | Relative links | Resolve against the current branch; `/` starts at the repo root. Prefer them for repo files and images. | | Task lists (all renderers) | `- [ ]`, `- [x]`; escape a leading paren: `- [ ] \(Optional)`. | diff --git a/skills/github-markdown/references/autolinks.md b/skills/github-markdown/references/autolinks.md index 1299de0..61231fb 100644 --- a/skills/github-markdown/references/autolinks.md +++ b/skills/github-markdown/references/autolinks.md @@ -4,6 +4,7 @@ Issue, PR, discussion and commit-message text. **Not** in repo files (README.md included) or wikis, which only autolink bare URLs (`https://...`, `www....`): there, write explicit links. +Everywhere, write URLs as `[label](url)` or `<url>`, not bare (see the Links row in SKILL.md). ## Forms diff --git a/skills/index.json b/skills/index.json index 618f050..56d64c0 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.1.5", + "version": "0.1.6", "files": [ "SKILL.md", "references/autolinks.md", From 1e445fe74180bf48a0c8e25af21e67ea45468634 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 07:18:30 +0000 Subject: [PATCH 09/12] docs(skills): github-markdown: no-JavaScript summary and floating images Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 2 +- skills/github-markdown/references/html.md | 19 +++++++++++++++++++ skills/index.json | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index f192b0e..0f935fb 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.1.6" + version: "0.1.7" --- # GitHub Markdown diff --git a/skills/github-markdown/references/html.md b/skills/github-markdown/references/html.md index 5606f9f..9282fac 100644 --- a/skills/github-markdown/references/html.md +++ b/skills/github-markdown/references/html.md @@ -2,6 +2,10 @@ ## What github.com removes +**No JavaScript of any kind runs**: no `<script>`, event handlers, `javascript:` URLs, +`<iframe>`, `<object>`, `<embed>` or inline `<svg>`. For anything interactive, link to a +GitHub Pages site. + github.com sanitizes rendered Markdown much harder than the GFM spec's tag filter (which only escapes `<title> <textarea> <style> <xmp> <iframe> <noembed> <noframes> <script> <plaintext>`). github.com then runs an allow-list sanitizer (its public basis is `html-pipeline`'s @@ -67,6 +71,21 @@ The `<img>` is the fallback for light mode and for other renderers. - Center with `<p align="center">` or `<div align="center">` (CSS is stripped). - Size images with `<img width="...">`; Markdown `![]()` cannot set a size. +## Floating an image + +`align="left"` or `align="right"` on an `<img>` floats it, and the following text wraps around +it (on other tags `align` only aligns text). `hspace="10"` adds side spacing. `<br clear="all">` +(or `left`, `right`) stops the wrap so the next heading starts below the image. Keep floated +images small: text beside them gets cramped on phones. + +```markdown +<img src="assets/logo.png" align="right" width="120" hspace="10" alt="Project logo"> + +Text here wraps to the left of the logo. + +<br clear="right"> +``` + ## Custom anchors `<a name="my-anchor"></a>` makes a link target `#my-anchor`. It is not listed in the file's diff --git a/skills/index.json b/skills/index.json index 56d64c0..f712ee7 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.1.6", + "version": "0.1.7", "files": [ "SKILL.md", "references/autolinks.md", From 7ddea5758c3332fcda7636610c626817a7761703 Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 07:26:40 +0000 Subject: [PATCH 10/12] feat(skills): github-markdown: add fancy-tricks reference Colors, styled text, layout and animation without CSS (MathJax, Mermaid, diff blocks, nested tables, animated SVG), in its own file so the common references stay small. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 4 +- .../references/fancy-tricks.md | 54 +++++++++++++++++++ skills/index.json | 3 +- 3 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 skills/github-markdown/references/fancy-tricks.md diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index 0f935fb..d580506 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.1.7" + version: "0.2.0" --- # GitHub Markdown @@ -54,3 +54,5 @@ GitHub features and ask the user in one line whether that is OK. - Mermaid, maps, STL, math, code fences: [references/diagrams-math.md](references/diagrams-math.md) - All autolink forms, unfurling, backlinks, label chips, color chips: [references/autolinks.md](references/autolinks.md) +- Color, styled text, multi-column layout or animation without CSS (MathJax, Mermaid, + animated SVG): [references/fancy-tricks.md](references/fancy-tricks.md) diff --git a/skills/github-markdown/references/fancy-tricks.md b/skills/github-markdown/references/fancy-tricks.md new file mode 100644 index 0000000..3c37801 --- /dev/null +++ b/skills/github-markdown/references/fancy-tricks.md @@ -0,0 +1,54 @@ +# Fancy tricks: color, layout and motion without CSS + +For when someone asks for a "hack": colors, styled text, multi-column layout or animation in a +README or comment. github.com strips CSS, `class`, `style` and all script (see +[html.md](html.md)), so every trick here goes through something GitHub renders itself: +images, MathJax, Mermaid or plain HTML attributes. Prefer plain Markdown unless the user asks. +Each trick costs accessibility or portability; say which when you use it. + +## Color + +| Want | Trick | Notes | +|---|---|---| +| Colored text | `$\color{red}{\text{warning}}$` (MathJax) | Renders as math: not searchable, odd spacing, read as math by screen readers. Also `\color{#0969DA}`. `\colorbox` may not be supported; preview it. | +| Red and green lines | a ```` ```diff ```` block; lines starting with `+` or `-` | Code-block font; meant for diffs. | +| Colored boxes and blocks | a Mermaid diagram with `style A fill:#f9f,stroke:#333` or `classDef` | A diagram, not text; fine for charts and status boards. | +| Colored callouts | the five alerts (`> [!NOTE]` ...) | The only text color GitHub supports directly. | +| Highlight | `<mark>text</mark>` | Yellow only. | +| Color swatch | `` `#ff0000` `` | Issues, PRs and discussions only. | +| Any color, any font | an image (PNG or SVG banner, a shields.io badge) | Give it `alt` text. Use `<picture>` for separate dark and light versions. | + +## Fonts and type + +- No font family or size control in HTML. Built in: headings, `<small>`, `<sub>`, `<sup>`, + bold, italic, strikethrough, and monospace from `<code>`, `<kbd>`, `<samp>`, `<tt>`. +- MathJax fonts and sizes inside `$...$`: `\mathbb{R}`, `\mathcal{A}`, `\mathfrak{g}`, + `\texttt{x}`, `\mathsf{x}`, `\large` up to `\Huge`. +- Unicode styled letters (𝓼𝓬𝓻𝓲𝓹𝓽, π”£π”―π”žπ”¨π”±π”²π”―, 𝙒𝙀𝙣𝙀) are plain text and always render, but + screen readers spell them out or skip them and search cannot find them. Avoid them for + anything important. + +## Layout + +- **Columns and grids**: an HTML `<table>` (tables nest inside `<td>`), with `width`, `align`, + `valign`, `colspan`, `rowspan`. GitHub's stylesheet always draws borders and striping; + borderless tables are not possible. +- **Side-by-side image and text**: `<img align="right">` (see "Floating an image" in html.md). +- **Menus and accordions**: nested `<details>` blocks. +- **Centered hero section**: `<div align="center">` around an image, a heading and badges. + +## Motion and live content + +- **Animated SVG** in an `<img>` (or `![]()`): CSS and SMIL animation inside the SVG file play; + its scripts never run. This is how "typing" banners work. Keep the file small. +- **Animated GIF, WebP or APNG**: work as images. Mind file size and motion sensitivity. +- **Live images** from an outside server (stats cards, "now playing", counters): GitHub fetches + images through its caching image proxy, so updates show up late and every reader's request + hides their IP from the server. +- **Theme-aware art**: `<picture>` with `prefers-color-scheme` sources swaps images between + dark and light mode. + +## Never possible + +JavaScript, forms, `<iframe>` and other embeds, CSS of any kind, positioning beyond `align` +and floats, custom fonts, and background colors on text or blocks (other than an image). diff --git a/skills/index.json b/skills/index.json index f712ee7..8ad2e8a 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,11 +136,12 @@ }, { "name": "github-markdown", - "version": "0.1.7", + "version": "0.2.0", "files": [ "SKILL.md", "references/autolinks.md", "references/diagrams-math.md", + "references/fancy-tricks.md", "references/html.md" ] }, From 81afc6e4d80e822b914ea6cbbae16114509934ae Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 07:32:23 +0000 Subject: [PATCH 11/12] fix(skills): github-markdown: colorbox is blocked; mark tint differs by theme Tested in a GitHub issue: \color works, \colorbox errors with 'macros are not allowed', and <mark> is a dim tint in dark mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 2 +- skills/github-markdown/references/fancy-tricks.md | 4 ++-- skills/index.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index d580506..341b2ae 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.2.0" + version: "0.2.1" --- # GitHub Markdown diff --git a/skills/github-markdown/references/fancy-tricks.md b/skills/github-markdown/references/fancy-tricks.md index 3c37801..658e974 100644 --- a/skills/github-markdown/references/fancy-tricks.md +++ b/skills/github-markdown/references/fancy-tricks.md @@ -10,11 +10,11 @@ Each trick costs accessibility or portability; say which when you use it. | Want | Trick | Notes | |---|---|---| -| Colored text | `$\color{red}{\text{warning}}$` (MathJax) | Renders as math: not searchable, odd spacing, read as math by screen readers. Also `\color{#0969DA}`. `\colorbox` may not be supported; preview it. | +| Colored text | `$\color{red}{\text{warning}}$` (MathJax) | Renders as math: not searchable, odd spacing, read as math by screen readers. Also `\color{#0969DA}`. `\colorbox` is blocked ("macros are not allowed"), so there is no background color. | | Red and green lines | a ```` ```diff ```` block; lines starting with `+` or `-` | Code-block font; meant for diffs. | | Colored boxes and blocks | a Mermaid diagram with `style A fill:#f9f,stroke:#333` or `classDef` | A diagram, not text; fine for charts and status boards. | | Colored callouts | the five alerts (`> [!NOTE]` ...) | The only text color GitHub supports directly. | -| Highlight | `<mark>text</mark>` | Yellow only. | +| Highlight | `<mark>text</mark>` | GitHub's highlight color only: bright yellow in light mode, a dim tint in dark mode. | | Color swatch | `` `#ff0000` `` | Issues, PRs and discussions only. | | Any color, any font | an image (PNG or SVG banner, a shields.io badge) | Give it `alt` text. Use `<picture>` for separate dark and light versions. | diff --git a/skills/index.json b/skills/index.json index 8ad2e8a..5e0afc2 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.2.0", + "version": "0.2.1", "files": [ "SKILL.md", "references/autolinks.md", From 0cd989e301feeab00f48256795b55e3ec6a5058b Mon Sep 17 00:00:00 2001 From: Claude <noreply@anthropic.com> Date: Mon, 30 Nov 2026 07:40:36 +0000 Subject: [PATCH 12/12] fix(skills): github-markdown: id works as a link target too Tested in a GitHub issue: links to both <a id> and <a name> jump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP --- skills/github-markdown/SKILL.md | 2 +- skills/github-markdown/references/html.md | 8 +++++--- skills/index.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/skills/github-markdown/SKILL.md b/skills/github-markdown/SKILL.md index 341b2ae..3975e24 100644 --- a/skills/github-markdown/SKILL.md +++ b/skills/github-markdown/SKILL.md @@ -2,7 +2,7 @@ name: github-markdown description: 'Use only when a GitHub-specific Markdown question comes up, usually while editing a repo''s root README.md, an issue or PR template, or an issue, PR or comment body: alerts, footnotes, task lists, heading anchors, #123 and SHA autolinks, @mentions, closing keywords, <details>, <picture> for dark mode, raw HTML that GitHub strips, Mermaid, math. Not needed for plain Markdown.' metadata: - version: "0.2.1" + version: "0.2.2" --- # GitHub Markdown diff --git a/skills/github-markdown/references/html.md b/skills/github-markdown/references/html.md index 9282fac..daaea95 100644 --- a/skills/github-markdown/references/html.md +++ b/skills/github-markdown/references/html.md @@ -14,7 +14,7 @@ github.com then runs an allow-list sanitizer (its public basis is `html-pipeline - **Tags not on the list are removed but their text is kept**: `<center>`, `<font>`, `<u>`, `<button>`, forms and `<input>`, `<svg>`, `<style>` ... `<script>` is removed with its content. - **Attributes not on the list are removed**: `style`, `class`, event handlers (`onclick` ...). - So no colors, fonts or CSS layout. Don't rely on `id` for link targets; use `<a name>`. + So no colors, fonts or CSS layout. - **Unsafe URLs are removed**: `href` keeps `http`, `https`, `mailto` and relative links (no `javascript:`); `img src` keeps only `http`, `https` and relative (no `data:` images). - `<li>` outside a list and table cells outside a `<table>` lose their tag. @@ -88,5 +88,7 @@ Text here wraps to the left of the logo. ## Custom anchors -`<a name="my-anchor"></a>` makes a link target `#my-anchor`. It is not listed in the file's -outline and does not affect heading anchor numbering. +`<a name="my-anchor"></a>` or `id="my-anchor"` on an allowed tag makes a link target +`#my-anchor` (GitHub stores it as `user-content-my-anchor`, and `#my-anchor` still jumps there). +`<a name>` is the documented form. Neither is listed in the file's outline or affects heading +anchor numbering. diff --git a/skills/index.json b/skills/index.json index 5e0afc2..55a3fb5 100644 --- a/skills/index.json +++ b/skills/index.json @@ -136,7 +136,7 @@ }, { "name": "github-markdown", - "version": "0.2.1", + "version": "0.2.2", "files": [ "SKILL.md", "references/autolinks.md",