Is there a way to automatically generate link text from the hyperlink destination without manually typing it out in the source code? I am using a Markdown file with basic HTML and CSS to list external links to academic papers. For instance, can a link be displayed as journal.pbio.0020449 without duplicating journal.pbio.0020449
in the source code? In other words, is it possible to have the hyperlink destination automatically serve as the link text, perhaps only displaying the last part? How can this be achieved?
Currently, I have managed to change the visual appearance of the link:
<style>
a.doi {color: red;}
</style>
<a class="doi" href="https://doi.org/10.1371/journal.pbio.0020449">journal.pbio.0020449</a>