Add Markdown-to-PDF converter with RTL support

This commit is contained in:
Meghdad committed 2026-06-30 16:27:16 +03:30
1 parent 94f179ad6d
commit 86a54faf6a
7 files changed
+1139 -4

No files matched your search

+6
View File
@@ -323,6 +323,12 @@ def format_timestamp(value: Any, tz) -> str:
def main(argv: Optional[Sequence[str]] = None) -> int:
argv = list(argv) if argv is not None else sys.argv[1:]
if argv and argv[0] == "pdf":
from chatgpt_pdf_converter import main as pdf_main
return pdf_main(argv[1:])
parser = argparse.ArgumentParser(
description="Export a public ChatGPT shared conversation to Markdown."
)