module AsciidoctorBibliography::Databases::BibTeX

Constants

EXTENSIONS

Public Class Methods

load(filename) click to toggle source
# File lib/asciidoctor-bibliography/databases/bibtex.rb, line 16
      def self.load(filename)
        # TODO: detect BibLaTeX code w/ other extensions
        warn <<~MESSAGE if File.extname(filename) == '.biblatex'
          WARNING: you are requiring a BibLaTeX database; only features compatible with BibTeX are guaranteed to work.
        MESSAGE
        ::BibTeX.open(filename, filter: [LatexFilter]).to_citeproc
      end