aspeddro / cmp-pandoc.nvim

Pandoc source for nvim-cmp
MIT License
38 stars 9 forks source link

doesn't parse bib file entries with `}}` #10

Open kbro237 opened 1 year ago

kbro237 commented 1 year ago

I use BibDesk to organize my bib files but it saves bib entries with two simultaneous curly brackets which seems to mess up cmp-pandoc.nvim. For example, this doesn't work:

@book{Knuth1986,
    address = {Reading, Mass.},
    author = {Knuth, Donald Ervin},
    call-number = {Z253.4.T47},
    date-added = {2023-08-02 16:27:40 -0400},
    date-modified = {2023-08-02 16:31:19 -0400},
    dewey-call-number = {686.2/2544},
    genre = {Computerized typesetting},
    isbn = {0201134373},
    library-id = {86001232},
    publisher = {Addison-Wesley Pub. Co.},
    series = {Computers & typesetting},
    title = {TEX: the program},
    year = {1986}}

but this does:

@book{Knuth1986,
    address = {Reading, Mass.},
    author = {Knuth, Donald Ervin},
    call-number = {Z253.4.T47},
    date-added = {2023-08-02 16:27:40 -0400},
    date-modified = {2023-08-02 16:31:19 -0400},
    dewey-call-number = {686.2/2544},
    genre = {Computerized typesetting},
    isbn = {0201134373},
    library-id = {86001232},
    publisher = {Addison-Wesley Pub. Co.},
    series = {Computers & typesetting},
    title = {TEX: the program},
    year = {1986}
}
maccius commented 1 year ago

I can confirm the same problem — entries with doubled brackets (as produced by BibDesk) aren't registered by cmp-pandoc.