From 08da130d58ad1eacfdd2a5b9338b1ccdd88ac81b Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:34:46 -0800 Subject: [PATCH] Feat/add weekly notes 10 (#10) * fix: update some asset URLs * feat: add weekly-notes-10 * feat(weekly-notes-10): Add a little more * feat(weekly-notes-10: proof-reading * feat(weekly-notes-10): more content * feat(weekly-notes-10): proof-read * feat: add `flow` class to footnotes section * fix: center images within picture element * feat(weekly-notes-10): more content and added skip --- config/plugins/markdown.js | 10 ++ config/shortcodes/image.js | 6 +- src/css/utilities/image.css | 13 ++ src/posts/2024-11-21-weekly-notes-10.md | 181 ++++++++++++++++++++++++ 4 files changed, 207 insertions(+), 3 deletions(-) create mode 100644 src/css/utilities/image.css create mode 100644 src/posts/2024-11-21-weekly-notes-10.md diff --git a/config/plugins/markdown.js b/config/plugins/markdown.js index 45bc300..c5ea132 100644 --- a/config/plugins/markdown.js +++ b/config/plugins/markdown.js @@ -17,4 +17,14 @@ const markdown = markdownIt({ defaultLanguage: "plaintext", }); +markdown.renderer.rules.footnote_block_open = (_tokens, _idx, options) => { + return ( + (options.xhtmlOut + ? '