Skip to content

Enable direct Markdown to PDF/DOCX conversion#11

Open
ssgamingop wants to merge 9 commits into
VRSEN:mainfrom
ssgamingop:feature/markdown-conversion
Open

Enable direct Markdown to PDF/DOCX conversion#11
ssgamingop wants to merge 9 commits into
VRSEN:mainfrom
ssgamingop:feature/markdown-conversion

Conversation

@ssgamingop
Copy link
Copy Markdown

Description

Previously, the Docs Agent could create Markdown files but could not convert them to polished formats like PDF or DOCX (this was limited to HTML-sourced documents). This PR closes that gap by implementing a conversion bridge.

Changes

  • Updated CreateDocument.py to automatically generate a hidden .source.html file when a Markdown document is created.
  • Integrated markdown-it-py for robust Markdown-to-HTML rendering.
  • Updated ConvertDocument.py documentation and logic to support the new workflow.
  • Updated requirements.txt and pyproject.toml with the new dependency.

Why this is needed

Markdown is the "native" language of LLMs. Forcing users or agents to use HTML for styled documents adds friction.

This change allows users to:

  • Stay in Markdown
  • Still get high-quality, CSS-styled PDF and DOCX exports

How to test

  1. Use the Docs Agent to create a document with:
    { "type": "markdown" }
  2. Immediately call: ConvertDocument with output_format="pdf"
  3. Verify that a high-quality PDF is generated from the Markdown source.

If you want, I can also :contentReference[oaicite:0]{index=0}.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 13732a07ed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs_agent/tools/CreateDocument.py Outdated
@ssgamingop
Copy link
Copy Markdown
Author

what is the issue why you guys are not merging my PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant