-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Description
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
Type
Projects
Status