Please give us a description of what happened
When a post or page contains HTML that causes the League HTML-to-Markdown converter to throw, the plugin does not catch the exception. The request fails with a fatal error (500) instead of returning markdown or a safe fallback, so the .md URL breaks instead of degrading gracefully.
To Reproduce
Step-by-step reproduction instructions
- Create or edit a post that includes HTML that triggers the League HTML-to-Markdown converter to throw (e.g., certain malformed structures, edge-case markup, or content that exposes bugs in the converter).
- Visit the post’s
.md URL (e.g. https://yoursite.com/post-slug.md).
- The request fails with a PHP fatal error / 500 response instead of returning markdown.
Expected results
- The
.md URL returns valid output (markdown or a plain-text fallback) instead of crashing.
Actual results
- The request throws an uncaught exception and returns a 500 error or PHP fatal error.
Technical info
- If relevant, which editor is affected (or editors):
- Which browser is affected (or browsers):
Used versions
- Device you are using: web/Chrome
- Operating system: Windows 11
- PHP version: 8.3
- WordPress version: 6.9.1
- WordPress Theme: 2025
- Plugin version: 1.0.0
- Relevant plugins in case of a bug:
Please give us a description of what happened
When a post or page contains HTML that causes the League HTML-to-Markdown converter to throw, the plugin does not catch the exception. The request fails with a fatal error (500) instead of returning markdown or a safe fallback, so the
.mdURL breaks instead of degrading gracefully.To Reproduce
Step-by-step reproduction instructions
.mdURL (e.g.https://yoursite.com/post-slug.md).Expected results
.mdURL returns valid output (markdown or a plain-text fallback) instead of crashing.Actual results
Technical info
Used versions