Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A a11yproject.com
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The A11Y Project
  • a11yproject.com
  • Issues
  • #825
Closed
Open
Issue created Jul 28, 2019 by Administrator@rootContributor

Code blocks in Posts

Created by: matyus

Summary

There seems to be inconsistency in how code blocks are formatted between various posts.

Expected result

Code blocks should use the same syntax and the output should have syntax highlighting.

Actual result

Some code blocks are syntax highlighted and some aren't.

  • Markdown style indent: https://github.com/a11yproject/a11yproject.com/blob/00d814701f2559afbb8f764ab9fbb84cd020bc53/_posts/2013-01-11-how-to-hide-content.md#L22-L28
  • Three backticks: https://github.com/a11yproject/a11yproject.com/blob/00d814701f2559afbb8f764ab9fbb84cd020bc53/_posts/2013-01-14-aria-landmark-roles.md#L76-L78
  • Three backticks with syntax highlighting: https://github.com/a11yproject/a11yproject.com/blob/00d814701f2559afbb8f764ab9fbb84cd020bc53/_posts/2013-01-14-never-use-maximum-scale.md#L21-L23
  • Liquid syntax highlight: https://github.com/a11yproject/a11yproject.com/blob/00d814701f2559afbb8f764ab9fbb84cd020bc53/_posts/2013-05-11-skip-nav-links.md#L20-L34

Additional Information

I'm interested in contributing to this repo and happy to open a pull request to tidy the code up! Just let me know if I should account for anything in particular... it's not immediately obvious to me how any of this relates to the 2019 redesign.

I would like to propose the use of three back ticks with the filetype (e.g. ```html) rather than plain markdown style double indents or liquid tags.

Assignee
Assign to
Time tracking