• I have a blog on which I used Markdown for formatting until the block editor was introduced; all my posts from Dec 2019 onwards use that. But before that I used Markdown and used the Text Control plugin to parse it on the fly. (I was using the entry composer QTM, which I developed myself, to write entries, but have stopped using this since the block editor came in.)

    I recently updated my PHP to version 8.4 as the version I had been using was outdated and insecure. My blog immediately stopped working; it would display the title, but nothing else. I discovered that Text Control was orphaned and hadn’t been updated in more than 10 years and was incompatible with PHP 8.x.

    I have searched for plugins which can translate saved Markdown content on the fly, but there doesn’t seem to be one. There are plugins which allow content to be converted when an entry is saved, but nothing available replicates the functionality of Text Control. As it stands, all my old posts display with MD syntax, which looks bad and there are no links.

    Does anyone know how to get these old posts displaying properly again?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator threadi

    (@threadi)

    Wow, this plugin appears to be one of the first ever created. However, it is no longer compatible with PHP 8.4.

    Nevertheless, I have just found something that may serve your purpose: https://ww.wp.xz.cn/plugins/markup-markdown/ – please try it out.

    Thread Starter IndigoJo

    (@indigojo)

    I have tried that one, but it isn’t for parsing legacy Markdown posts; it provides its own editor, a bit like Classic Editor, with MD enabled.

    @indigojo Have you ACTUALLY TESTED it on your live (or staging) website, beyond reading the headline description?

    Yes, the plugin replaces both the Classic and Block editors with its own editor, but, at least from my quick test, it renders the existing markdown posts just fine. It even loads existing posts into its Markdown editor so these posts can be edited, if need be.

    NB: In my quick test:

    1. I published a page with a “lorem ipsum” Markdown text without the “Markup Markdown” plugin. I used the Classic editor to mimic your environment as close as I could, and I took the Markdown text from here: https://jaspervdj.be/lorem-markdownum/
    2. On the published page, WordPress displayed the raw Markdown text, without any processing.
    3. I then installed and activated the Markup Markdown plugin. Immediately after this, WordPress rendered the Markdown with proper formatting and HTML markup.
    4. I then opened the existing page (previously written in the Classic Editor) in the Markdown Markup plugin’s editor and added additional Markdown text. The updated page was also rendered properly.

    So it seems the “Markup Markdown” plugin should fit your bill, unless something else on your site is breaking the core functionality of the plugin.

    • This reply was modified 9 months, 3 weeks ago by George Appiah.
    Thread Starter IndigoJo

    (@indigojo)

    @gappiah I have it running on my site. The issue I have with it is that I have to disable it every time I want to compose a new post, because it replaces the Block Editor. I only need Markdown for old posts.

    Moderator threadi

    (@threadi)

    Ask their support forum, maybe there is a setting or a hook that could be used: https://ww.wp.xz.cn/support/plugin/markup-markdown/

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Markdown on legacy postings’ is closed to new replies.