vault backup: 2025-12-14 22:45:45
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m13s
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m13s
This commit is contained in:
@@ -57,10 +57,10 @@ def parse_markdown_file(filepath, deck_name):
|
||||
continue
|
||||
|
||||
# 2. Hantera spoiler-block
|
||||
if line.startswith("|spoiler-block:"):
|
||||
if line.startswith("```spoiler-block:"):
|
||||
in_spoiler = True
|
||||
continue
|
||||
if line == "|" and in_spoiler:
|
||||
if line == "```" and in_spoiler:
|
||||
in_spoiler = False
|
||||
continue
|
||||
|
||||
@@ -102,11 +102,8 @@ def main():
|
||||
full_path = os.path.join(root, filename)
|
||||
print(f"Bearbetar: {filename} i mappen '{raw_folder_name}' -> Kortlek: {full_deck_name}")
|
||||
|
||||
try:
|
||||
cards = parse_markdown_file(full_path, full_deck_name)
|
||||
all_cards.extend(cards)
|
||||
except Exception as e:
|
||||
print(f"!! Fel vid läsning av {full_path}: {e}")
|
||||
cards = parse_markdown_file(full_path, full_deck_name)
|
||||
all_cards.extend(cards)
|
||||
|
||||
# Skriv till fil
|
||||
with open(OUTPUT_FILE, 'w', encoding='utf-8') as f:
|
||||
|
||||
Reference in New Issue
Block a user