Markdown blog filenames

main
bashrc 2026-01-12 17:32:03 +00:00
parent 187ebd3ac6
commit 2b331c5479
2 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,7 @@ def blog_to_gemini(base_dir: str, nickname: str, domain: str,
# replace any excessive lines
for _ in range(2):
content_text = content_text.replace('\n\n', '\n')
content_text = content_text.replace('\n\n\n', '\n\n')
# add links to the end of the content
if links:

View File

@ -2268,6 +2268,7 @@ def get_gemini_blog_filename(base_dir: str, nickname: str, domain: str,
return ''
title_text2 = title_text.replace('.', ' ')
title_text2 = title_text2.replace(' ', '_')
title_text2 = title_text2.replace('"', '')
if not testing:
account_dir = acct_dir(base_dir, nickname, domain)
@ -2292,6 +2293,7 @@ def get_markdown_blog_filename(base_dir: str, nickname: str, domain: str,
return ''
title_text2 = title_text.replace('.', ' ')
title_text2 = title_text2.replace(' ', '_')
title_text2 = title_text2.replace('"', '')
if not testing:
account_dir = acct_dir(base_dir, nickname, domain)