Skip to content

fix(docs): format markdown append writes#530

Draft
eric-x-liu wants to merge 1 commit intosteipete:mainfrom
eric-x-liu:codex/docs-markdown-append-format
Draft

fix(docs): format markdown append writes#530
eric-x-liu wants to merge 1 commit intosteipete:mainfrom
eric-x-liu:codex/docs-markdown-append-format

Conversation

@eric-x-liu
Copy link
Copy Markdown

Summary

  • allow gog docs write --append --markdown to append converted Google Docs formatting instead of raw Markdown text
  • reuse the existing Docs API Markdown parser/formatter for append writes while preserving Drive-based Markdown replacement
  • add a regression test and README example for formatted Markdown append

Root Cause

docs write --markdown only supported full replacement through Drive's Markdown conversion path. Append writes used Docs API InsertText, which inserts Markdown syntax literally unless gogcli converts formatting into Docs API requests first.

Fixes #272

Tests

  • go test ./internal/cmd -run 'TestDocsWrite|TestMarkdownToDocsRequests' -count=1
  • git diff --check

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.

Docs write: Markdown not rendered when using API

1 participant