GitHub doesn’t recognize .mdc as markdown so every Cursor rule you look at on GitHub is raw source. Frontmatter soup, unrendered headings, fenced code blocks as plaintext. Mermaid flowcharts? A wall of --> arrows.
I built a UserScript to fix that. It detects and renders *.mdc files on GitHub - rendering Markdown, code-fence syntax highlighting, and even Mermaid flowcharts. It renders by default, but also adds a toggle so you can drop back to the raw source. If you get a deep link to a line number, it does not automatically render; you’ll jump directly to the line of code, as intended.
Example

Install
- Install a UserScript engine, such as Violentmonkey or Tampermonkey. GreaseMonkey probably works too.
- Install the UserScript from GreasyFork
- Open any
.mdcon GitHub - Done!