toddsundsted / ktistec

Single user ActivityPub (https://www.w3.org/TR/activitypub/) server.
GNU Affero General Public License v3.0
360 stars 20 forks source link

Feature Request: Footnotes #70

Open worstname opened 1 year ago

worstname commented 1 year ago

Greetings. Would it be possible and/or desirable to add a footnotes functionality to the editor? I often write about books and such and so having a simple way to refer to page numbers, titles etc. makes footnotes desirable.

toddsundsted commented 1 year ago

writing long form was/is a long-term goal for ktistec (vs. tweeting/tooting/etc.) so i think it's a good suggestion. can you point me to a platform that you think does it well (vs. just forcing users to use super/sub-scripts and manually creating them).

worstname commented 1 year ago

can you point me to a platform that you think does it well (vs. just forcing users to use super/sub-scripts and manually creating them).

Truthfully, I have yet to see a good implementation of footnotes in a WYSIWYG editor. What I use regularly is the more manual process in markdown: https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/

Which I don't think is too bad. Main thing is that the footnotes should have links both ways when rendered so the reader can easily click a footnote, read it, and then click the footnote again to jump back to where they were reading. For some reason a lot of sites get that wrong.

Perhaps what could be done is a button that more or less automates this:

  1. User clicks footnote button
  2. Prompts for footnote text
  3. Places footnote number where the cursor is and places corresponding footnote at end of post.