summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();
}