statamic / ideas

đŸ’¡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Footnotes in Bard #713

Open binoclard opened 2 years ago

binoclard commented 2 years ago

It would be super nice to be able to have a proper footnotes feature in Bard.

riasvdv commented 2 years ago

There's a ProseMirror footnote example here https://prosemirror.net/examples/footnote/

Bard is built on TipTap which is built on ProseMirror, so that might help when trying to implement something like this

jackmcdade commented 2 years ago

How do you envision this working? Automatically "scraping" the links in the content, or creating an explicit footnote, or what?

binoclard commented 2 years ago

I was imagining something like a Bard set, but "inline"?

You could create a footnote block, write its content, but it would insert a number at its place inside the paragraph, and then let you output/display/manipulate the actual content of the footnote elsewhere in the View.

wesort commented 2 years ago

I created a Footnotes system recently for a project: satellitedreaming.com (see Essays). It's a bit fragile (in terms of content authoring) but maybe it'll help anyone looking to do this.

Footnote in the body copy of a Bard field

The footnotes content

Position the footnotes within the content

Template the footnotes set

sjclark commented 2 years ago

Huh @wesort thats a great approach đŸ”¥