Setting universal Markdown link shortcodes #2315
Unanswered
xplosionmind
asked this question in
Ideas
Replies: 1 comment 3 replies
-
Not exactly what you're looking for, but you seem to be able to use ---
# src/test.md
title: Test
---
[example](https://example.com 'Hey, I am an example!') is the same as [example]
{% include "links.md" %} <!-- # src/_includes/links.md -->
[example]: https://example.com 'Hey, I am an even cooler placeholder example!' OUTPUT<p><a href="https://example.com" title="Hey, I am an example!">example</a> is the same as
<a href="https://example.com" title="Hey, I am an even cooler placeholder example!">example</a></p> |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Markdown provides the great opportunity of creating link shortcodes/placeholder, as represented below.
How awesome it would be if I could provide to Eleventy a data file with a list of all the values in between the square brackets, their corresponding URL, and the title, so that I do not have to specify it on every single page, if it is a link I use often inside the vault?
example of what I envision, in
/_data/links.csv
, wherename
is[shortcode]
:Beta Was this translation helpful? Give feedback.
All reactions