mkdocs_bibtex/plugin.py
def format_citations(self, citations):
        """
        Formats references and adds them to the global registry

        Args:
            citations (dict): mapping of cite_key to entry

        Returns OrderedDict of references
        """
        style = PlainStyle()
        backend = MarkdownBackend()
        references = OrderedDict()
        for key, entry in citations:
            if self.csl_file is not None:
                entry_text = to_markdown_pandoc(entry, self.csl_file)
            else:
                formatted_entry = style.format_entry("", entry)
                entry_text = formatted_entry.text.render(backend)
                entry_text = entry_text.replace("\n", " ")
            # Local reference list for this file
            references[key] = entry_text
            # Global reference list for all files
            self.all_references[key] = entry_text
        return references

        Formats references and adds them to the global registry

        Args:
            citations (dict): mapping of cite_key to entry

        Returns OrderedDict of references
        
Formats references and adds them to the global registry
Formats references and adds them to the global registry
def format_citations(self, citations):
        style = PlainStyle()
        backend = MarkdownBackend()
        references = OrderedDict()
        for key, entry in citations:
            if self.csl_file is not None:
                entry_text = to_markdown_pandoc(entry, self.csl_file)
            else:
                formatted_entry = style.format_entry("", entry)
                entry_text = formatted_entry.text.render(backend)
                entry_text = entry_text.replace("\n", " ")
            references[key] = entry_text
            self.all_references[key] = entry_text
        return references
def format_citations ( self , citations ) : style = PlainStyle ( ) backend = MarkdownBackend ( ) references = OrderedDict ( ) for key , entry in citations : if self . csl_file is not None : entry_text = to_markdown_pandoc ( entry , self . csl_file ) else : formatted_entry = style . format_entry ( "" , entry ) entry_text = formatted_entry . text . render ( backend ) entry_text = entry_text . replace ( "\n" , " " ) references [ key ] = entry_text self . all_references [ key ] = entry_text return references
Formats references and adds them to the global registry
Formats references and adds them to the global registry
"""
        Formats references and adds them to the global registry

        Args:
            citations (dict): mapping of cite_key to entry

        Returns OrderedDict of references
        """ # Local reference list for this file # Global reference list for all files
self
citations
mapping of cite_key to entry
mapping of cite_key to entry