Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Markdown

Security covered Under active development 2,830 sites

Part of the Markdown ecosystem · 7 projects

This module allows you to use Markdown, a simple plain-text formatting syntax, within Drupal. It converts your Markdown text into standard HTML, making it easy to write content while still having it display correctly on your website. You can configure which Markdown parser to use and even allow both Markdown and HTML in your content.

Provides Markdown integration for Drupal, letting authors write in a clean, plain-text syntax that is transformed into valid HTML through a configurable filter.

The Markdown syntax is designed to co-exist with HTML, so you can build input formats that allow both. It is also meant to be as human-readable as possible when left as “source”.

Features

  • Markdown filter for Drupal text formats.
  • Site-wide default parser with per-format overrides.
  • Pluggable parser system to support multiple Markdown engines.
  • Support for both CommonMark and GitHub Flavoured Markdown via CommonMark.
  • Optional parser extensions and settings exposed through the UI.

Requirements

    A Markdown parser:

    This module bridges popular PHP Markdown libraries with Drupal by offering integration wrappers around them. The following parsers are supported out-of-the-box:

Installation

  • Follow the standard Drupal installation instructions:

    https://www.drupal.org/docs/extending-drupal/installing-modules

  • Choose a Markdown parser from above and install it via Composer:

    https://getcomposer.org/doc/

  • Enable and edit your global (default/site-wide) Markdown parser in your site:

    /admin/config/content/markdown

  • Optionally, create a new text format or edit an existing one to add the Markdown filter to it where you can choose to inherit the site-wide settings or override the settings for that particular text format:

    /admin/config/content/formats

    Note: Markdown may conflict with other text format filters, depending on the order in which filters are configured to apply. If unexpected markup occurs when the text format is configured with other filters, experiment with the order of the filters to attempt to resolve any issues.

    The "Limit allowed HTML tags and correct faulty HTML" filter is intentionally disabled by default because this module duplicates the same functionality use its own: Render Strategy.

Documentation

Extensive documentation for this module can be found at:

https://www.drupal.org/docs/contributed-modules/markdown

Editor.md

If you are interested in a Markdown editor please check out the
Editor.md module for Drupal.

Drupal 10–11

Ask your assistant about Markdown

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • filter Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Aug 2023
Latest release
9 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
3.1.0 Stable 10–11 Jan 7, 2026
3.0.1 Stable 9–10 PHP >=5.5.9 Jan 8, 2024
3.0.0 Stable 9–10 PHP >=5.5.9 Sep 5, 2023
3.0.0-rc3 Pre-release 9–10 PHP >=5.5.9 Aug 21, 2023