Consider adding a visual Markdown editor

Created on 18 June 2025, 5 days ago

Problem/Motivation

While being able to enter Markdown is great, the there is no visual feedback until you save (or preview) the content.

Perhaps I'm spoiled by Slack and GitLab, but I find it very satisfying to get a semi-conversion of the Markdown entered as you type.

This is very much a "nice to have", but it would be great if the Markdown Easy module provided something similar.

Steps to reproduce

Proposed resolution

There are various JavaScript components that provide this functionality. It would be great to add one to this module.

It should probably be an optional feature, for purists who prefer plain text input.

Remaining tasks

  • Identify a suitable JavaScript component (a quick search found EasyMDE).
  • Integrate into MarkDownEasy
  • Lots of testing!

User interface changes

Integration of visual Markdown editor.

API changes

None

Data model changes

None (probably)

โœจ Feature request
Status

Active

Version

2.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ชIreland lostcarpark

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lostcarpark
  • ๐Ÿ‡ฉ๐Ÿ‡ฐDenmark ressa Copenhagen

    Yes please, this would be an awesome feature. I could easily imagine having a Drupal installation, with the only task of being a Markdown editor :)

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia virag.jain

    virag.jain โ†’ made their first commit to this issueโ€™s fork.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States ultimike Florida, USA

    This is a very cool idea. I think I would want to do it with an AJAX call though, so that we are 100% guaranteed to be using the same Markdown config for both preview and display.

    Maybe horizontal tabs for "Raw" and "Preview", with the AJAX triggered when switching to the "Preview" tab?

    Let's give this one some more thoughts once #3530290 and a few others are behind us.

    -mike

  • ๐Ÿ‡ฎ๐Ÿ‡ชIreland lostcarpark

    Those are good ideas. Would be nice to have a "side by side" view that automatically updated periodically as you type.

    I see your point about using AJAX so the preview is using the same processor as the final output, though I do like the idea of at least basic formatting being applied in the editor.

Production build 0.71.5 2024