Parses BibTeX or BibLaTeX source into normalized entries and field values. Recoverable problems are reported in Library.errors; set unsupported: 'throw' to throw on unsupported TeX commands or environments.
Library.errors
unsupported: 'throw'
const { entries, errors } = parse('@article{example, author={Ada Lovelace}, title={A title}}')const title = entries[0]?.fields.title Copy
const { entries, errors } = parse('@article{example, author={Ada Lovelace}, title={A title}}')const title = entries[0]?.fields.title
Parses BibTeX or BibLaTeX source into normalized entries and field values. Recoverable problems are reported in
Library.errors; setunsupported: 'throw'to throw on unsupported TeX commands or environments.