Formatting
Platform Formatters
How FoPost formats content for each platform.
Platform Formatters
OwlStack automatically formats your content for each target platform on the server side. You don't need to worry about character limits, markup syntax, or hashtag placement.
How it works
When you publish a post, OwlStack's cloud:
- Takes your post body
- Converts markup to the platform's format (HTML for Telegram, Markdown for Discord, etc.)
- Injects hashtags from your tags within the character budget
- Appends the canonical URL if there's room
- Truncates at a word boundary to respect character limits
// You write this:
$post = Post::create('Check out our new blog post about PHP 8.3!')
->withUrl('https://example.com/php-83')
->withHashtags(['php', 'programming']);
// For Telegram (HTML, 4096 chars), OwlStack sends:
// Check out our new blog post about PHP 8.3!
//
// Read more: https://example.com/php-83
// #php #programming
// For Twitter (plain text, 280 chars), OwlStack sends:
// Check out our new blog post about PHP 8.3!
//
// https://example.com/php-83 #php #programmingMarkup by platform
| Platform | Markup Format |
|---|---|
| Telegram | HTML |
| Twitter/X | Plain text |
| Plain text | |
| Plain text | |
| Discord | Markdown |
| Plain text | |
| Plain text | |
| Markdown | |
| Slack | mrkdwn |
| Tumblr | NPF (Neue Post Format) |
| Plain text |