diff options
| author | Joe Carstairs <me@joeac.net> | 2026-03-24 21:34:57 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-03-24 21:34:57 +0000 |
| commit | 5c27d9c0eaa9c295bc28226d0941f55744dc3a09 (patch) | |
| tree | fafbed29d98dd3fe3f1c9d2e12398435869128cd /src | |
| parent | 2048c576e98acb0f1e3e26b7c75d2bc86d05ee1b (diff) | |
trim title off body if detected
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 2 |
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(); } |
