GitHub
GitHub references, shortened into links.
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.
Moving to Git Link
quarto remove mcanouil/quarto-github
quarto add mcanouil/quarto-gitlinkThe configuration changes shape:
# github
extensions:
github:
repository-name: jlord/sheetsee.js
base-url: https://github.com# gitlink
extensions:
gitlink:
repository: jlord/sheetsee.js
platform: githubGit Link’s own documentation covers the rest: https://m.canouil.dev/quarto-gitlink.
Installation
Still available, for projects that have not moved yet:
quarto add mcanouil/quarto-github@1.6.0This 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.jsThen write references as you would in a GitHub comment:
Fixed in #26 and in jlord/sheetsee.js#26 as wellWhich renders as: Fixed in #26 and in jlord/sheetsee.js#26 as well.
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.
Links
- Git Link, the replacement.
- Reference for every reference form.
- Examples for rendered output.
- Changelog for what each release changed.
- Source and issues on GitHub.