Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to insert formatted citations from bibliography #282

Closed
kpj opened this issue Mar 4, 2021 · 3 comments
Closed

How to insert formatted citations from bibliography #282

kpj opened this issue Mar 4, 2021 · 3 comments
Labels
better-for-plugin It should be better as Marpit plugin question 🙅 Not issue, just a question (should post to Marp discussion)

Comments

@kpj
Copy link

kpj commented Mar 4, 2021

I was wondering what the best way of automatically inserting formatted citations into a marp presentation is.

It would be great if a BibTeX bibliography could be specified and contained citations could be referenced and inserted by their id. Possibly using something like citeproc.

@yhatt yhatt added the question 🙅 Not issue, just a question (should post to Marp discussion) label Mar 4, 2021
@yhatt
Copy link
Member

yhatt commented Mar 4, 2021

Citation is in out of CommonMark. You should use external plugin designed for Marpit or markdown-it, but I could not find out the suitable plugin. So I would have to say you can't do that.

Related: markdown-it/markdown-it#55

If you interested, you can make a plugin by own (but it would not be easy).
https://marpit-api.marp.app/
https://github.com/markdown-it/markdown-it/tree/master/docs

@yhatt yhatt added the better-for-plugin It should be better as Marpit plugin label Mar 4, 2021
@kpj
Copy link
Author

kpj commented Mar 10, 2021

Thanks for your suggestion!

I'd imagine the general logic would be for the plugin to recognize some kind of marker with a citation id, and then to replace that marker with an appropriately formatted citation.
Would it be acceptable to use arbitrary HTML statements (e.g. something like <meta name="citation" content="meiser2020dna">) as markers?

@yhatt
Copy link
Member

yhatt commented Apr 10, 2021

Close for housekeeping the issue tracker. The design of specific plugin is out of the scope of Marp team.

@yhatt yhatt closed this as completed Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better-for-plugin It should be better as Marpit plugin question 🙅 Not issue, just a question (should post to Marp discussion)
Projects
None yet
Development

No branches or pull requests

2 participants