Skip to content

Conversation

@lev-n
Copy link

@lev-n lev-n commented Jan 19, 2026

Implemented Markdown export support.

Plan:

  • Add Markdown extension/mime constants and enum handling.
  • Allow documents to export to md and resolve md mime.
  • Keep other export flows unchanged.

Changes:

src/common/drive_file.rs: introduced md extension and text/markdown mime, added Md to FileExtension (parsing, display, mime resolution), and included it in document supported_export_types, enabling Drive docs to export as Markdown.

Tests

Tested locally. export to MD works fine.
./gdrive files export <DOCUMENT_ID> doc.md
and import also works
./gdrive files import doc.md

Similar PR: Markdown file export

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