跳到内容

MarkDown Block

v2.2.0

Isamu Takeda · 2025年4月13日 上架

This block converts Markdown documents into blocks for styling web pages.

正在使用
10 以下
评分
暂无
累计下载
1,234
最近更新
2026年11月15日
需要 WordPress 6.4+已测试到 7.1.5PHP 8.2+

贡献者

截图

On the left is the Markdown document editing area, and on the right is the preview after styling and the block editing area.
On the left is the Markdown document editing area, and on the right is the preview after styling and the block editing area.
HTML element style management and table of contents settings screen
HTML element style management and table of contents settings screen
Front-end display including table of contents
Front-end display including table of contents
Front-end display with top table of contents open
Front-end display with top table of contents open
Responsive design
Responsive design
Responsive design with table of contents open
Responsive design with table of contents open

This block has the function of editing Markdown documents using SimpleMDE, and by parsing Markdown documents using marked, it can assign specific blocks to the converted HTML elements.
This function allows users to customize Markdown documents using the styling functions of the corresponding blocks, allowing for a wide range of styling.
The following are the blocks that are applied when Markdown documents are parsed into HTML elements.

  1. H element: itmar/design-title
  2. P element: core/paragraph
  3. PRE element: itmar/code-highlight
  4. IMG element: core/image
  5. BLOCKQUOTE element: core/quote
  6. LI element: core/list
  7. TABLE element: core/table

The H element is also generated as a table of contents, and has the function of displaying nested items according to level.
This plugin does not require any external resources (all scripts and styles are included locally)

Related Links

Arbitrary section

  1. PHP class management is now done using Composer.
    GitHub
    Packagist

  2. I decided to make functions and components common to other plugins into npm packages, and install and use them from npm.
    npm
    GitHub

External services

  1. This plugin uses EasyMDE to implement the editing function of Markdown documents. This is an open source JavaScript library provided under the MIT license.
    EasyMDE LICENSE
    EasyMDE comes with a spell check feature.
    When using this feature, it will try to load an external file (en_US.aff / en_US.dic) from a CDN. To avoid this, this plugin sets spellChecker: false, when instantiating EasyMDE, so that the external file will not be loaded.
  2. This plugin uses marked to parse Markdown documents and convert them to HTML elements. This is an open source JavaScript library provided under the MIT license.
    marked LICENSE

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums