Commit c80e4a0f by Sylvester Keil

Merge pull request #134 from edgemaster/pr-134

Make bibtex converter use configured filters.
parents 867c1f71 5ef1c6a3
......@@ -63,6 +63,24 @@ Feature: BibTeX
And the "_site/references.html" file should exist
And I should see "Look, an umlaut: ü!" in "_site/references.html"
@superscript
Scenario: Simple Bibliography with LaTeX superscript
Given I have a scholar configuration with:
| key | value |
| style | apa |
And I have a page "references.bib":
"""
---
---
@misc{umlaut,
title = {Look, \textsuperscript{superscript}!},
}
"""
When I run jekyll
Then the _site directory should exist
And the "_site/references.html" file should exist
And I should see "Look, <sup>superscript</sup>!" in "_site/references.html"
@tags @bibtex
Scenario: Embedded BibTeX
Given I have a scholar configuration with:
......
......@@ -30,7 +30,8 @@ module Jekyll
end
def convert(content)
content = BibTeX.parse(content, :strict => true, :include => [:meta_content], :filter => [:latex]).map do |b|
content = BibTeX.parse(content, :strict => true, :include => [:meta_content],
:filter => @config['scholar']['bibtex_filters']).map do |b|
if b.respond_to?(:to_citeproc)
render_bibliography b
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment