trim title off body if detected
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ export default function gemtext(config: GemtextConfig = {}): AstroIntegration {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (data["title"]) {
|
if (data["title"]) {
|
||||||
body.replace(`# ${data["title"]}\n`, '');
|
body = body.replace(`# ${data["title"]}\n`, '');
|
||||||
body = body.trim();
|
body = body.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user