GitHub

GitHub references, shortened into links.

What the github extension did, why it is superseded by Git Link, and how to move across.
WarningSuperseded by Git Link

This extension is no longer developed. Git Link replaces it and does the same job for GitHub, GitLab, Bitbucket, and other forges, alongside a repository widget and other features.

These pages document github for the projects still using it, and describe the move.

GitHub renders #26 in an issue comment as a link to issue 26, and a5c3785 as a link to that commit. Write the same thing in a Quarto document and you get the literal text.

github filled that gap: it recognised the same reference forms GitHub does and turned them into links, shortening full URLs on the way.

Installation

Still available, for projects that have not moved yet:

quarto add mcanouil/quarto-github@1.6.0

This will install the extension under the _extensions subdirectory. If you are using version control, you will want to check in this directory.

Quick start

filters:
  - path: github
    at: post-quarto
extensions:
  github:
    repository-name: jlord/sheetsee.js

Then write references as you would in a GitHub comment:

Fixed in #26 and in jlord/sheetsee.js#26 as well

Which renders as: Fixed in #26 and in jlord/sheetsee.js#26 as well.

Caution

A reference has to be followed by a space. #26, and #26. are left as plain text, so a reference at the end of a sentence needs rewording.

See the Reference for every form it recognises, and the Examples for each of them rendered.

Where it works

Every output format. The filter rewrites the document before any writer runs, so the links survive into PDF and Word as well as HTML.

Back to top