Page Markdown

Export any page to a clean Markdown file. Adds an export button to the page editor.

Page Markdown for ProcessWire

Page Markdown is a module for ProcessWire that enables users to export any page into a clean, well-structured Markdown file directly from the page editor.

The module automatically converts most ProcessWire field types—including complex ProFields and Repeater Matrix—into their corresponding Markdown equivalents.

Features


  • Editor Button: Adds an "Export to Markdown" button to the page edit form as a secondary priority action.

  • Smart HTML Conversion: Converts CKEditor content (tables, lists, headings, links, bold/italic) into standard Markdown syntax.

  • ProFields Support: Native handling for ProFields Table, Combo, and Repeater Matrix.

  • Flexible Configuration:

    • Toggle field labels as headings.

    • Define global ignore lists for specific fields or field types.

    • Customizable datetime formatting.

    • Automatic cleanup of empty HTML tags and non-breaking spaces.

Installation


  1. Download or clone this repository into your /site/modules/PageMarkdown/ directory.

  2. In your ProcessWire admin, navigate to Modules > Refresh.

  3. Locate Page Markdown and click Install.

Configuration


After installation, you can adjust the following settings:

  • Show Field Labels: If enabled, field labels will be rendered as ## Heading before the content.

  • Clean Empty HTML Tags: Automatically removes empty paragraphs and excessive whitespace.

  • Datetime Format: Specify the PHP date() format for datetime fields.

  • Ignored Fields/Types: Select technical or system fields that should be excluded from all exports.

Supported Field Types


The module supports a wide range of standard and premium fields:

  • Text: Text, Textarea, CKEditor (with HTML-to-MD conversion).

  • Numbers: Integer, Float, Checkbox (Yes/No).

  • Assets: Pagefiles and Pageimages (rendered as markdown links or image syntax).

  • References: Page Reference (single and multiple) as links or titles.

  • Complex Fields:

    • Repeater & Repeater Matrix: Supports nested structures with type labels.

    • ProFields Table: Generates clean markdown tables.

    • ProFields Combo: Generates key-value lists.

  • Special Fields: MapMarker (address/coordinates), Email (mailto links), URL, Color (hex codes).

Usage


Open any page in the ProcessWire admin and click the "Export to Markdown" button located at the bottom of the form. The file will be generated and the download will start automatically.

License


MIT License.

More modules by Maxim Semenov

  • Context

    Export ProcessWire site context for AI development (JSON + TOON formats)
  • WireWall

    Advanced traffic firewall with VPN/Proxy/Tor detection, rate limiting, and JS challenge
  • LQRS URL Shortener Profile

    This site profile for ProcessWire offers a free and easy-to-use URL shortener that transforms long links into concise, shareable URLs. It is built using standard ProcessWire modules and field types.
  • Page Markdown

    Export any page to a clean Markdown file. Adds an export button to the page editor.
  • Media Platform Profile

    This site profile for ProcessWire offers a fully-featured media platform for hosting and managing video content with Backblaze B2 and Cloudflare integration.
  • Plausible Analytics

    Plausible Analytics dashboard using Stats API v2 with page-edit widget, traffic trends chart, and geo/device tabs.
  • AiWire

    AI integration for ProcessWire. Supports Anthropic, OpenAI, Google, xAI, and OpenRouter.
  • Rapid

    EditorJS block editor fieldtype for ProcessWire. Stores content as JSON, renders HTML server-side via pluggable block renderers.
  • Subscribe

    Newsletter subscription handler with lists, double opt-in, honeypot, rate limiting and unsubscribe link.

All modules by Maxim Semenov

Install and use modules at your own risk. Always have a site and database backup before installing new modules.