chore: enabled footnotes for markdown cbdf88e3
Steve · 2026-04-08 19:46 2 file(s) · +31 −0
apps/posts/src/server.rs +1 −0
316 316
    options.insert(Options::ENABLE_STRIKETHROUGH);
317 317
    options.insert(Options::ENABLE_TABLES);
318 318
    options.insert(Options::ENABLE_TASKLISTS);
319 +
    options.insert(Options::ENABLE_FOOTNOTES);
319 320
    let parser = Parser::new_ext(content, options);
320 321
    let mut html_output = String::new();
321 322
    html::push_html(&mut html_output, parser);
apps/posts/static/styles.css +30 −0
737 737
  opacity: 0.7;
738 738
}
739 739
740 +
/* Footnotes */
741 +
742 +
.markdown-body .footnote-definition {
743 +
  font-size: 12px;
744 +
  opacity: 0.7;
745 +
  margin-bottom: 0.5rem;
746 +
  display: flex;
747 +
  gap: 0.5rem;
748 +
}
749 +
750 +
.markdown-body .footnote-definition-label {
751 +
  font-size: 11px;
752 +
  opacity: 0.5;
753 +
  flex-shrink: 0;
754 +
}
755 +
756 +
.markdown-body .footnote-definition p {
757 +
  margin-bottom: 0;
758 +
}
759 +
760 +
.markdown-body sup.footnote-reference a {
761 +
  font-size: 11px;
762 +
  text-decoration: none;
763 +
  opacity: 0.6;
764 +
}
765 +
766 +
.markdown-body sup.footnote-reference a:hover {
767 +
  opacity: 1;
768 +
}
769 +
740 770
.hidden {
741 771
  display: none;
742 772
}