Jump to content

Recommended Posts

Posted

Hello,

A small utility I built for my own workflow — export any page directly from the editor as a clean Markdown file. Useful for documentation, content migration, and feeding page content to AI tools.

GitHub: https://github.com/mxmsmnv/PageMarkdown

What it does:

  • Adds an Export to Markdown button to the page edit form
  • Smart HTML conversion — CKEditor content (tables, lists, headings, links, bold/italic) → standard Markdown
  • Supports ProFields: Table, Combo, Repeater Matrix (with type labels and nested structure)
  • Images and files render as Markdown image/link syntax
  • Page references render as links or titles
  • MapMarker, Email, URL, Color fields all handled
  • Configurable: toggle field labels as headings, ignore lists per field/type, datetime format, empty HTML cleanup

Requirements: ProcessWire 3.0+, PHP 8.0+

MIT License.

  • Like 5
Posted
2 hours ago, maximus said:

CKEditor

Useful utility indeed, thanks for sharing!

Are you planning to add TinyMCE support as well? Given that CKEditor has been replaced by TinyMCE as the default RTE, on new sites I always use TinyMCE.

  • Like 2
Posted (edited)

Very useful, indeed! May I suggest an example in its docs for the developer to implement:

- A URL segment `/md/` or, even better, adding `.md` to the URL to trigger the display of the markdown version of the page? 

Edited by Sergio
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...