MarkDown Block
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,
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.
- 01H element: itmar/design-title
- 02P element: core/paragraph
- 03PRE element: itmar/code-highlight
- 04IMG element: core/image
- 05BLOCKQUOTE element: core/quote
- 06LI element: core/list
- 07TABLE 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
- markdown-block:Github
- block-class-package:GitHub
- block-class-package:Packagist
- itmar-block-packages:npm
- itmar-block-packages:GitHub
Arbitrary section
- 08PHP class management is now done using Composer. GitHub Packagist
- 09I decided to make functions and components common to other plugins into npm packages, and install and use them from npm. npm GitHub
External services
- 10This 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.