-
Notifications
You must be signed in to change notification settings - Fork 51
Conversation
I have a working prototype. Let's see what we want to do though because it only supports rendering bibtex entries like this:
|
As mentioned in #16 (see this comment), I know it won't be easy, but adding citations as footnotes would be nice. |
Well, supporting bibtex preview would already be nice. My idea is to allow the use of some bibtex references, but I will not rewrite Overleaf :-) There is no lib for formatting bibtex files correctly in javascript, so I have to write this lib first :-( Then, I have to test the
Then, I will try to support the Here are a few screenshots: |
This is precisely what I am talking about: citation keys (e.g. |
Not exactly, I should have written "wire" instead of "link". Example: |
Ok then. Let's consider this issue as the first step of adding bibliography support in Monod and forget about footnote-like behavior. |
Issue transformed into a PR 🎉 |
const token = tokens[idx]; | ||
|
||
if ('cite' === token.info) { | ||
const entries = bibtex.parse(md.utils.escapeHtml(token.content)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for myself: maybe I could avoid to parse the content twice (here and below in the fence block parser)
* new cite plugin (that enhances the fence block parser + add support for [@citation_ref]) * bibtex lib to parse and format references
Don't know if it is a good idea, but at least we can make it testable...
Purpose
The idea is to support BibTeX for scientific references.
Features
fence
block parserPreview
panelSee below for screenshots.