summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-03-24 21:34:57 +0000
committerJoe Carstairs <me@joeac.net>2026-03-24 21:34:57 +0000
commit5c27d9c0eaa9c295bc28226d0941f55744dc3a09 (patch)
treefafbed29d98dd3fe3f1c9d2e12398435869128cd
parent2048c576e98acb0f1e3e26b7c75d2bc86d05ee1b (diff)
trim title off body if detected
-rw-r--r--src/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index 48c140a..c7dd0e7 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -83,7 +83,7 @@ export default function gemtext(config: GemtextConfig = {}): AstroIntegration {
)
if (data["title"]) {
- body.replace(`# ${data["title"]}\n`, '');
+ body = body.replace(`# ${data["title"]}\n`, '');
body = body.trim();
}