-
-
Save olov/961336 to your computer and use it in GitHub Desktop.
# references.rb has moved to https://github.com/olov/jekyll-references |
This doesn't work with the following setting
{% capture content %}
Foo [some link][some-id] bar.
{% endcapture %}
It will complain that some-id
is not known. (And yes it is inside a file called _references.md
.)
Err, that code should have read as follows:
{% capture content %}
Foo [some link][some-id] bar.
{% endcapture %}
{{ content | markdownify }}
@spockz The plugin works on the markdown file level in such a way that it just concatenates _references.md to the end at every .md file it is about to process (it hooks into read_yaml).
For your use-case, we should instead hook into the Markdown class (convert method). That should be pretty straight-forward. Feel free to take a stab at it yourself (please poke me if so) - I may or may not get around to doing it myself.
@spockz Alright I changed the hook so it should work now
This Gist has moved to a GitHub project for easier collaboration. Get it from https://github.com/olov/jekyll-references
Thanks. I'm able to reproduce that issue. I've fixed it in the gist by inserting a newline between content and the references.