From 120e6255e6be92a1ecc4d6ef8df71c048de6691b Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Tue, 9 Sep 2014 14:13:24 +0200 Subject: [PATCH] add embedded bibtex tag fix #57 --- features/bibtex.feature | 26 ++++++++++++++++++++++++++ lib/jekyll/scholar.rb | 1 + 2 files changed, 27 insertions(+) diff --git a/features/bibtex.feature b/features/bibtex.feature index 16d13f3..7a6c98d 100644 --- a/features/bibtex.feature +++ b/features/bibtex.feature @@ -63,6 +63,32 @@ Feature: BibTeX And the "_site/references.html" file should exist And I should see "Look, an umlaut: ΓΌ!" in "_site/references.html" + @tags @bibtex @wip + Scenario: Embedded BibTeX + Given I have a scholar configuration with: + | key | value | + | style | apa | + And I have a page "references.md": + """ + --- + --- + References + ========== + + {% bibtex %} + @book{ruby, + title = {The Ruby Programming Language}, + author = {Flanagan, David and Matsumoto, Yukihiro}, + year = {2008}, + publisher = {O'Reilly Media} + } + {% endbibtex %} + """ + When I run jekyll + Then the _site directory should exist + And the "_site/references.html" file should exist + And I should see "The Ruby Programming Language" in "_site/references.html" + @tags Scenario: Simple Bibliography Loaded From Default Directory Given I have a scholar configuration with: diff --git a/lib/jekyll/scholar.rb b/lib/jekyll/scholar.rb index 63c6e1d..7ddc0c9 100644 --- a/lib/jekyll/scholar.rb +++ b/lib/jekyll/scholar.rb @@ -13,6 +13,7 @@ require 'jekyll/scholar/utilities' require 'jekyll/scholar/converters/bibtex' require 'jekyll/scholar/tags/bibliography' +require 'jekyll/scholar/tags/bibtex' require 'jekyll/scholar/tags/cite' require 'jekyll/scholar/tags/cite_details' require 'jekyll/scholar/tags/quote' -- GitLab