Skip to content

Commit 21c286a

Browse files
authored
Updates WORKSPACE-Context.md with Chat-specific formatting instructions (#142)
Partially addresses #58 (Chat formatting task). Testing: - Manual test: LLM converts `**bold**` and `__bold__` to `*bold* ` - Manual test: LLM converts `*italic*` to `_italic_` - Manual test: LLM converts `[text](url)` to `<url|text>` - Manual test: LLM flattens nested list items, but prefixes the list items with dashes to indicate depth (e.g., "- parent", "- -- child", "- --- grandchild") Supported syntax: ``` - *bold* (single asterisks, not **) - _italic_ - ~strikethrough~ - `inline code` and ```code blocks``` - Bulleted lists ("* " or "- " at line start) - Links: <url|display text> (not [text](url)) - User mentions: <users/{user}> ``` Unsupported syntax (must be converted or avoided): ``` - **double asterisks** for bold - # headings - [text](url) markdown links - > blockquotes ```
1 parent 399caf9 commit 21c286a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

workspace-server/WORKSPACE-Context.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,31 @@ When asked about "next meeting" or "today's schedule":
135135
2. **Download**: Use `gmail.downloadAttachment` with the specific `messageId` and `attachmentId`.
136136
3. **Absolute Paths**: Always provide an **absolute path** for the `localPath` argument (e.g., `/Users/username/Downloads/file.pdf`). Relative paths will be rejected for security.
137137

138+
## 💬 Chat Guidelines
139+
140+
Google Chat uses a specific subset of Markdown. Ensure messages sent to Chat use
141+
the syntax supported by Chat, and convert any unsupported syntax to a supported
142+
syntax.
143+
144+
### Supported Formatting
145+
146+
- *bold* (single asterisks)
147+
- _italic_ (single underscores)
148+
- ~strikethrough~
149+
- `inline code`
150+
- ```code blocks```
151+
- Bulleted lists ("* " or "- " at line start)
152+
- Links: <url|text>
153+
- User mentions: <users/{user}>
154+
155+
### Unsupported (convert these)
156+
157+
- **double asterisks** for bold (convert to *single asterisks*)
158+
- [text](url) markdown links (convert to <url|text>)
159+
- Nested lists (flatten with dashes: "- parent", "- -- child")
160+
- # headings (convert to *bold* text)
161+
- > blockquotes (preserve the `>` characters, do not remove them)
162+
138163
## 📄 Docs, Sheets, and Slides
139164

140165
### Format Selection (Sheets)

0 commit comments

Comments
 (0)