Skip to content

[ACTION] Add Markdown-Aware Text Replacement for Google Docs Action #19007

@s0s0physm

Description

@s0s0physm

Is there a specific app this action is for?

Yes, Google Docs.

The current Google Docs → Replace Text action in only supports plain text replacement. When the replacement string includes Markdown (e.g. bold, italic, or lists), the formatting is lost, and any existing text styles in the replaced range can be broken. This makes it difficult to insert formatted or structured content into a Doc programmatically.

Describe the solution you'd like:

Add a Markdown-aware option to the Replace Text action, or provide a separate “Replace Text (Markdown Aware)” action.
When enabled, the action should:

  • Parse the replacement text as Markdown.
  • Convert Markdown syntax (bold, italics, links, headings, lists, code, etc.) into corresponding Google Docs formatting via documents.batchUpdate requests.
  • Preserve other document structure outside of the replaced range.

Please provide a link to the relevant API docs for the specific service / operation.

NB: Google Doc's API doesn't have a markdown endpoint.

Google Docs API overview: https://developers.google.com/docs/api

documents.batchUpdate method (used for styling and insert operations): https://developers.google.com/docs/api/reference/rest/v1/documents/batchUpdate

ReplaceAllTextRequest (current plain-text replace behavior): https://developers.google.com/docs/api/reference/rest/v1/documents/request#ReplaceAllTextRequest

Metadata

Metadata

Assignees

Labels

actionNew Action RequestenhancementNew feature or requestgood first issueGood for newcomershelp wantedExtra attention is neededtriagedFor maintainers: This issue has been triaged by a Pipedream employee

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions