Skip to content

[pull] master from ruby:master#116

Merged
pull[bot] merged 2 commits intosysfce2:masterfrom
ruby:master
Jan 4, 2026
Merged

[pull] master from ruby:master#116
pull[bot] merged 2 commits intosysfce2:masterfrom
ruby:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Jan 4, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

st0012 added 2 commits January 4, 2026 12:01
I started the work to address #1537, but I think we should just go with
the GH markdown style anchor/link generation in the future.

Anchors Generated:

| Context | Before | After |
|---------|--------|-------|
| Heading `== Hello` (standalone) | `id="label-Hello"` | `id="hello"` |
| Heading `== Hello` (in class Foo) | `id="class-Foo-label-Hello"` |
`id="class-foo-hello"` |
| Heading `== Hello` (in method #bar) | `id="method-i-bar-label-Hello"`
| `id="method-i-bar-hello"` |
| Class/Module anchor | `id="class-Foo::Bar"` | `id="class-foo-bar"` |

**Legacy anchors preserved as hidden `<span class="legacy-anchor">`
elements. So links targeting old anchors should still work.**

Links Generated:

| Syntax | Before | After |
|--------|--------|-------|
| `rdoc-ref:@foo` | `href="#label-foo"` | `href="#foo"` |
| `rdoc-ref:Class@foo` | `href="#class-Class-label-foo"` |
`href="#class-class-foo"` |
| `rdoc-ref:Class#method@foo` | `href="#method-i-method-label-foo"` |
`href="#method-i-method-foo"` |
| `rdoc-ref:Class@Section Title` | `href="#Section Title"` |
`href="#section-title"` |

These changes now enable Markdown links to work with GitHub-style
anchors.

Markdown `[link](#foo)` passes through unchanged as `href="#foo"`.

- Before: Anchor was `id="label-Foo"` -> link broken
- After: Anchor is `id="foo"` -> link works

Supportive Changes:

- ToC sidebar links updated to use new anchor format

Closes #1537
@pull pull Bot locked and limited conversation to collaborators Jan 4, 2026
@pull pull Bot added the ⤵️ pull label Jan 4, 2026
@pull pull Bot merged commit b810f16 into sysfce2:master Jan 4, 2026
4 of 5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant