Skip to content

Fix markdown heading spec for commonmarker 2.9 - #163

Closed
akouryy wants to merge 1 commit into
cookpad:masterfrom
akouryy:akouryy/fix-markdown-heading-spec
Closed

akouryy wants to merge 1 commit into
cookpad:masterfrom
akouryy:akouryy/fix-markdown-heading-spec

Conversation

@akouryy

@akouryy akouryy commented Sep 7, 2026

Copy link
Copy Markdown
Member

commonmarker 2.9 has changed the HTML output of headings:

  • commonmarker 2.8.3: <h1><a href="#title" aria-hidden="true" id="title"></a>Title</h1>
  • commonmarker 2.9.0: <h1 id="title">Title<a href="#title" aria-label="Link to heading 'Title'"></a></h1>

Since this repository does not have Gemfile.lock (6b25bf4), CI always resolves the latest commonmarker, and spec/helpers/job_definition_helper_spec.rb has been broken since 2.9.0 was released.

This PR updates the spec so that it ignores anchors and h1 attributes and accepts both outputs.

@akouryy

akouryy commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

@cookpad/infra I think this PR and #160 block each other (Ruby 3.1 fails on this PR; Ruby 3.2 and 3.3 would fail on #160).
Can you merge this PR even though CI is failing?

@nekketsuuu

Copy link
Copy Markdown

@coord-e Could you please cherry-pick this commit into your branch #160 and try resolving CI failures?

@coord-e

coord-e commented Sep 9, 2026

Copy link
Copy Markdown
Member

Woah, I'd forgotten about the CI issue here. Sorry, I'm working on it now.

@coord-e

coord-e commented Sep 9, 2026

Copy link
Copy Markdown
Member

the commit is merged via #160. thank you! @akouryy

@coord-e coord-e closed this Sep 9, 2026
@akouryy
akouryy deleted the akouryy/fix-markdown-heading-spec branch September 10, 2026 06:50
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.

3 participants