cp -r domscribe-wordpress /path/to/wordpress/wp-content/plugins/Or simply extract the zip file in your plugins directory.
- Go to WordPress Admin → Plugins
- Find "Domscribe WordPress" and click "Activate"
Note: No composer install needed! All dependencies are bundled.
- Go to Settings → Domscribe
- Enable markdown conversion
- Configure your preferred options
- Save settings
# Test a single post
curl -H "Accept: text/markdown" http://your-wordpress-site.local/sample-post/
# Save to file
curl -H "Accept: text/markdown" http://your-wordpress-site.local/sample-post/ > post.md
# Check headers
curl -I -H "Accept: text/markdown" http://your-wordpress-site.local/sample-post/http http://your-wordpress-site.local/sample-post/ Accept:text/markdown<?php
$ch = curl_init('http://your-wordpress-site.local/sample-post/');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Accept: text/markdown']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$markdown = curl_exec($ch);
curl_close($ch);
echo $markdown;fetch('http://your-wordpress-site.local/sample-post/', {
headers: {
'Accept': 'text/markdown'
}
})
.then(response => response.text())
.then(markdown => console.log(markdown));# Start WordPress
docker-compose up -d
# Install plugin
docker-compose exec wordpress wp plugin activate domscribe-wordpress
# Check status
docker-compose exec wordpress wp plugin list- Create new site in Local
- Add plugin to
app/public/wp-content/plugins/ - Activate via WP Admin
- Copy plugin to
htdocs/wordpress/wp-content/plugins/ - Activate via WP Admin
-
Check PHP version (must be 8.0+):
php -v
-
Verify bundled libraries exist:
ls lib/domscribe/ ls lib/html5/
-
Check error logs:
tail -f wp-content/debug.log
-
Enable WordPress debug mode in
wp-config.php:define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);
Clear cache via:
- Settings → Domscribe → Clear All Cache
- Or programmatically:
domscribe_wp()->get_request_handler()->clear_all_cache();
cd wp-content/plugins
git clone https://github.com/acseo/domscribe-wordpress.gitNo additional steps needed!
- Download plugin zip
- Upload entire plugin directory via FTP
- Activate in WordPress admin
- Use
--no-devfor production - Enable caching for better performance
- Set appropriate cache duration
- Monitor cache size
- Use a CDN if serving many markdown requests
- Nonce Verification: All forms use WordPress nonces
- Capability Checks: Admin functions check user capabilities
- Input Sanitization: All inputs are sanitized
- Output Escaping: All outputs are escaped
- Cache Security: Caches are stored as transients (secure)
- Enable Caching: Always enable caching in production
- Set Appropriate Duration: Balance freshness vs performance
- Use Object Cache: Install Redis/Memcached for better caching
- Monitor Requests: Track markdown request patterns
- CDN Integration: Consider CDN for static markdown exports
- Read README.md for full documentation
- Check examples/ for code samples
- Visit GitHub Issues for support