getpelican/pelican — pull request #621 by jpmens (2012-12-06 18:23:21+00:00)
Title: Add support for a Markdown 'references' file

This adds support for what I call a 'references' file -- basically a set of links I use in Markdown posts. The input file looks like this:

[json]: http://json.org
[vbox]: http://www.virtualbox.org/
[yaml]: http://yaml.org
...

By setting `MD_REFERENCES = 'myfile.md'` in _pelicanconf.py_, I can use those links within posts without having to explicitly write them into individual postings. So, for example, a blog post as

```
title: Something

If you use [JSON] (or [YAML][yaml] for that matter), lorem ipsum dolor...
```

will have links for `[json]` and `[yaml]` expanded automatically.

I considered creating a Markdown extension with which to do that, but haven't been able to "encourage" Markdown to Preprocess those ...