Q&A: sample pe sesiunea 25.08.2026 (format pe concepte + index tematic)
- extract_audio.py: --only ocoleste CORE_MODULES, --lectures N limiteaza - render_html.py: extensia toc, ca sa existe ancore pe headinguri - summaries/09_QA/01_2026-08-25.md: 16 subiecte, 12 diagrame verificate vizual cu Playwright, intrebarile administrative eliminate - summaries/09_QA/INDEX_TEMATIC.md: index pe subiect, ancore verificate Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MtSTyTmt6AbCL9j5ajEDm1
This commit is contained in:
@@ -38,7 +38,7 @@ PAGE_TEMPLATE = """<!DOCTYPE html>
|
||||
|
||||
def render_file(md_path: Path) -> Path:
|
||||
text = md_path.read_text(encoding="utf-8")
|
||||
body = markdown.markdown(text, extensions=["extra"])
|
||||
body = markdown.markdown(text, extensions=["extra", "toc"])
|
||||
title = text.splitlines()[0].lstrip("# ").strip() if text else md_path.stem
|
||||
html_path = md_path.with_suffix(".html")
|
||||
html_path.write_text(PAGE_TEMPLATE.format(title=title, body=body), encoding="utf-8")
|
||||
|
||||
Reference in New Issue
Block a user