Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use inline HTML for heading tags, not Gitiles MD; allow <a> HTML element #831

Merged
merged 2 commits into from
Oct 9, 2022

Conversation

dfarrell07
Copy link
Member

@dfarrell07 dfarrell07 commented Oct 6, 2022

See commit messages for details

@dfarrell07 dfarrell07 added this to In progress in Submariner Project 0.14 via automation Oct 6, 2022
@dfarrell07 dfarrell07 self-assigned this Oct 6, 2022
@submariner-bot
Copy link

🤖 Created branch: z_pr831/dfarrell07/commonmark_headings

@netlify
Copy link

netlify bot commented Oct 6, 2022

Deploy Preview for elated-bell-2913d9 ready!

Name Link
🔨 Latest commit a6a7783
🔍 Latest deploy log https://app.netlify.com/sites/elated-bell-2913d9/deploys/634249006a6fd300085e2d1e
😎 Deploy Preview https://deploy-preview-831--elated-bell-2913d9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@dfarrell07 dfarrell07 changed the title Use inline HTML for heading tags, not Gitiles MD Use inline HTML for heading tags, not Gitiles MD; allow <a> HTML element Oct 6, 2022
@dfarrell07 dfarrell07 moved this from In progress to In Review in Submariner Project 0.14 Oct 6, 2022
@tpantelis tpantelis enabled auto-merge (rebase) October 7, 2022 17:27
The MD linter follows CommonMark, and in CommonMark the only way to add
custom ID tags to headings is by using HTML <a id="short-id"></a>.

Other syntaxes are valid in some MD syntaxes, but not CommonMark.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
This syntax for creating ID tags for headings (typically with complex
names) isn't supported in CommonMark, which is the standard used by our
MD linter. It's valid syntax in Gitiles MD, which is why the links work.

Upstream feature request to add support for this type of header ID:
DavidAnson/markdownlint#570

This is required for submariner-io#827.

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
@tpantelis tpantelis merged commit c63e37d into submariner-io:devel Oct 9, 2022
Submariner Project 0.14 automation moved this from In Review to Done Oct 9, 2022
@submariner-bot
Copy link

🤖 Closed branches: [z_pr831/dfarrell07/commonmark_headings]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants