List of Markdown badges, no not Discourse badges, those little images that look like flags on some sites

I know that badges are used extensively at Repology as demonstrated by the following example using SWI-Prolog: MSYS2 mingw package

Recently, I came across a DOI badge in a GitHub repository for neuro-vector-symbolic architectures: DOI. For those who read a lot of research papers, DOIs are very important and can be located using the DOI site but the Markdown badge saves the lookup step.

I asked ChatGPT to explain this specific DOI badge, as I was interested in learning more. Here’s what ChatGPT had to say:

This markdown creates a badge with a DOI (Digital Object Identifier) link for a specific resource hosted on Zenodo, a research data repository.

The syntax used to create the badge is as follows:

[![DOI](https://zenodo.org/badge/587315616.svg)](https://zenodo.org/badge/latestdoi/587315616)

The badge consists of an image (in this case, an SVG image) with a hyperlink to the latest DOI for the resource. The ![DOI] syntax specifies that the image will be used to represent the DOI, and the https://zenodo.org/badge/587315616.svg link is the URL for the image file itself. The second part of the markdown, https://zenodo.org/badge/latestdoi/587315616, is the hyperlink that the image will take you to when clicked, which is the latest version of the DOI for the specified resource.

Overall, this markdown is useful for indicating the presence of a DOI for a research resource, and can be embedded in documentation, webpages, or other online resources."

This led me to discover the a11y-markdown-badges repository on GitHub, which has even more examples of badges. I also found several online markdown badge generators by Googling for “online markdown badge generator.” Now that I know badges can be more versatile and serve as both a link and a short form of text or icon, I will keep an eye out for others and plan to use them in my Discourse post.


This is what Chrome shows for the page.

and the Markdown badge in Discourse shows

Discourse

An image capture of the Discorse edit preview (right panel) before saving

image

See next section for similar/same problem.


The one major problem I have with badges used on Discourse is that Discourse will cache the image once the page is saved, I think during the cooking phase. The badges from Repology for specific versions get converted such that they no longer stay updated. Learned of this creating this page. My hope was to have all of the badges posted in a Discouse page on the SWI-Prolog forum and the badges change based on the links in the badge changing the genration of the badge. :frowning_face:


EDIT

In doing some more research on my problem

  1. Site settings related to this can be found by searching for download, hotlink, image or local.
  2. For users with admin access Rebuild HTML might be effective. At present don’ plan on creating test data will just wait a few weeks for the badges to change then check.

image

4 Likes