Commit 4868c178 authored by Sylvester Keil's avatar Sylvester Keil

add embedded bibtex tag

fix #57
parent 120e6255
module Jekyll
class Scholar
class BibTeXTag < Liquid::Block
include Scholar::Utilities
def initialize(tag_name, arguments, tokens)
super
@config = Scholar.defaults.dup
@keys, arguments = split_arguments arguments
optparse(arguments)
end
def render(context)
set_context_to context
BibTeX.parse(super, bibtex_options).map { |entry|
reference_tag entry
}.join("\n")
end
end
end
end
Liquid::Template.register_tag('bibtex', Jekyll::Scholar::BibTeXTag)
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