Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Markdown Easy

Security covered Under active development 709 sites

Part of the Markdown ecosystem · 7 projects

This module provides a simple way to convert Markdown text into HTML using a text filter. It automatically sets up a "Markdown" text format upon installation, supporting various Markdown flavors like Standard, GitHub-flavored, and Markdown Smörgåsbord. For security, it's recommended to enable the "Limit allowed HTML tags" filter to run afterward.

The Markdown Easy module is a Drupal text filter to convert Markdown into HTML.

The primary use case for this module is to quickly and easily be able to configure and utilize a Markdown text filter. This module utilizes the league/commonmark Markdown parser library and allows for the bare minimum configuration in the Drupal admin interface.

It is required to utilize the "Limit allowed HTML tags and correct faulty HTML" text filters in conjunction with this module, see the Advanced configuration docs to remove this requirement.

Post-Installation

The Markdown Easy module automatically creates a "Markdown" text format when enabled. Feel free to customize.

To add a Markdown Easy text filter to an existing text format:

  • Select the "Markdown Easy" text filter.
  • Select "Standard Markdown", "GitHub-flavored Markdown", or "Markdown Smörgåsbord" in the text filter's settings on the text format's configuration page.
    • "Standard Markdown" includes support for italics, bold, images, links, lists, code, block quotes, headings, and horizontal rules.
    • "GitHub-flavored Markdown" includes everything in "Standard Markdown" plus support for autolinks, disallowed raw HTML, strikethrough, tables, and task lists. 
    • "Markdown Smörgåsbord" includes everything in "GitHub-flavored Markdown" plus support for footnotes and description lists.
  • IMPORTANT - Enable and configure the "Limit allowed HTML tags and correct faulty HTML" filter to run after the Markdown Easy filter. Without this step, the text format will allow all HTML tags.

Additional information

  • The Markdown Easy text filter is configured to run with the following security-related settings by default:
    • html_input: strip
    • allow_unsafe_links: false
  • See https://commonmark.thephpleague.com/2.4/security/ for more info. To override these settings, or to customize the configuration of the Markdown processor, utilize hook_markdown_easy_config_modify().
  • Note that the Markdown Easy module is currently not compatible with the Smart Trim module.

Warning: version 2.x includes a breaking change if you implemented hook_markdown_easy_config_modify() in version 1.x of this module - be sure to read the release notes for details.

Tip for migrating from Markdown module

  • The Markdown module allows the site-builder to install multiple Markdown processors, therefore, prior to installing Markdown Easy, if the league/commonmark parser is already installed, it should be removed (as Markdown Easy uses the latest version and Markdown does not).

    composer remove league/commonmark

Similar projects

Markdown - A less-easy, yet infinitely more configurable Markdown text filter.

Drupal 9–11

Ask your assistant about Markdown Easy

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
9
Tracked since
Jul 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0 Stable 9–11 Aug 17, 2025
2.0.0-rc1 Pre-release 9–11 Aug 4, 2025
2.0.x-dev Dev 10–11 Jun 17, 2025
1.0.1 Stable 9–11 Apr 18, 2024
1.0.0 Stable 9–10 Sep 2, 2023
1.0.0-beta4 Pre-release 9–10 Aug 12, 2023
1.0.0-beta3 Pre-release 9–10 Aug 10, 2023
1.0.0-beta2 Pre-release 9–10 Jul 31, 2023
1.0.x-dev Dev 9–11 Jul 27, 2023