Add markdown-export plugin for serving posts/pages as markdown #211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a WordPress plugin that responds with markdown versions of posts and pages when the URL path ends with
.md. Uses the existingMarkdownProducercomponent.Changes
plugins/markdown-export/plugin.phptemplate_redirectto intercept.mdrequestsget_page_by_path()with fallback to slug lookupMarkdownProducerwith frontmatter (title, date, excerpt)Usage
Example Output
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/8da41e9a9fe4cc14d23cf7fcef3b80476f54e511/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/fyuDcm /usr/bin/composer install --quiet(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/aFcZoM /usr/bin/composer install(http block)https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/fyuDcm /usr/bin/composer install --quiet(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/aFcZoM /usr/bin/composer install(http block)https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/fyuDcm /usr/bin/composer install --quiet(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/aFcZoM /usr/bin/composer install(http block)https://api.github.com/repos/doctrine/instantiator/zipball/0daa7cfba7b009aa3c95ae585322fb596a4ca2ae/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/fyuDcm /usr/bin/composer install --quiet(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/aFcZoM /usr/bin/composer install(http block)https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/aFcZoM /usr/bin/composer install(http block)https://api.github.com/repos/phar-io/manifest/zipball/65f90285728eae4eae313b8b6ba11b2f5436038e/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/aFcZoM /usr/bin/composer install(http block)https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/fyuDcm /usr/bin/composer install --quiet(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/aFcZoM /usr/bin/composer install(http block)https://api.github.com/repos/phpstan/phpstan/zipball/fcf8b71aeab4e1a1131d1783cef97b23a51b87a9/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/fyuDcm /usr/bin/composer install --quiet(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/aFcZoM /usr/bin/composer install(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.