Skip to content

docs: recommend file input as default for multiline markdown#8

Merged
Rockyy174 merged 1 commit into
mainfrom
improve-file-input-docs
May 15, 2026
Merged

docs: recommend file input as default for multiline markdown#8
Rockyy174 merged 1 commit into
mainfrom
improve-file-input-docs

Conversation

@davidjonesgtm
Copy link
Copy Markdown
Collaborator

@davidjonesgtm davidjonesgtm commented May 13, 2026

The Markdown content section previously led with inline \n escaping and mentioned --field-file as a secondary option. In practice, agents hit formatting bugs with inline escaping (literal \n instead of newlines).

This PR makes file input the recommended default:

  • Lead with --<field>-file and show the heredoc pattern
  • Document the naming convention (--body-file, --description-file, --content-file)
  • Demote inline strings to short single-line use only
  • Add practical examples for discussions, descriptions, and documents

The 'Markdown content' section previously led with inline \n escaping
and mentioned --<field>-file as a secondary option. For agents, this
caused formatting bugs (escaped newlines rendered as literal text).

Changes:
- Lead with --<field>-file as the recommended approach
- Show heredoc + file pattern (write to tmp, pass path)
- Document the -file flag naming pattern (--body-file, --description-file, --content-file)
- Demote inline strings to 'short, single-line content only'
- Add practical examples: discussion post, project description, document
@markoa markoa requested a review from Rockyy174 May 13, 2026 09:36
@Rockyy174 Rockyy174 merged commit b4dae02 into main May 15, 2026
@Rockyy174 Rockyy174 deleted the improve-file-input-docs branch May 15, 2026 11:44
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.

2 participants