From f5d83163ebb71c4fd31b4d9873be3597548edf4f Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 21 Dec 2023 01:44:13 +0100 Subject: [PATCH] trim md --- js/rants.js | 2 +- md/rants/electron.md | 4 +++- md/rants/wayland.md | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/js/rants.js b/js/rants.js index 933dc78..294ed6d 100644 --- a/js/rants.js +++ b/js/rants.js @@ -52,7 +52,7 @@ const articles = [ function extractTitleAndSubtitle(markdownContent) { const lines = markdownContent.split('\n'); const title = lines[0] ? lines[0].replace(/^#+\s*/, '').trim() : 'Untitled'; - const subtitle = lines[3] ? lines[3].trim() : ''; + const subtitle = lines[3] ? lines[3].replace(/^#+\s*/, '').trim() : ''; return { title, subtitle }; } diff --git a/md/rants/electron.md b/md/rants/electron.md index bfa4f2c..4ac4edc 100644 --- a/md/rants/electron.md +++ b/md/rants/electron.md @@ -1,4 +1,6 @@ # Electron ###### 21th December 2023 - Zoey
-### Electron is awful and here's why. \ No newline at end of file +### Electron is awful and here's why. +
+Lorem ipsum motherfuckerssss \ No newline at end of file diff --git a/md/rants/wayland.md b/md/rants/wayland.md index 90b9a7f..3d55ccf 100644 --- a/md/rants/wayland.md +++ b/md/rants/wayland.md @@ -1,4 +1,6 @@ # Wayland -######22th December 2023 +######22th December 2023 - Zoey
-### Insane defaults. \ No newline at end of file +### Insane defaults. +
+Lorem ipsum motherfuckerssss \ No newline at end of file