Skip to content

GitHub Pages autolinks fail #22154

Answered by otter-computer
bzliu94 asked this question in General
Discussion options

You must be logged in to vote

Thanks for dropping those links!

By default GitHub Pages uses Kramdown as the markdown processor for sites, whereas GitHub.com uses a variant of CommonMark—GitHub Flavoured Markdown. This is what’s causing your autolinks to work inside your repository but not on your Pages site.

To change this you’ll need to create a _config.yml file inside your repository with the following content to set your markdown renderer to GFM:

markdown: GFM

https://docs.github.com/en/github/working-with-github-pages/setting-a-markdown-processor-for-your-github-pages-site-using-jekyll

Once you’ve done that, and your site has had time to rebuild, any links you’ve got in there should be clickable just like inside …

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants