Description
ERA Markdown Importer is a lightweight, secure, and developer-friendly tool designed to streamline your content creation workflow. If you write your articles in Markdown-based applications like Obsidian, Notion, VS Code, or Typora, this plugin completely eliminates the need for manual copy-pasting, manual formatting, and layout adjustments.
The plugin converts standard Markdown elements (headings, paragraphs, lists, blockquotes, tables, and code blocks) into native, editable Gutenberg Blocks instantly.
Core Features
- Drag-and-Drop Uploader: Beautiful, minimalist administration interface inspired by modern design principles (shadcn/ui style).
- Gutenberg Blocks Conversion: Automatically generates native Gutenberg block comments (such as
wp:paragraph, etc.) instead of inserting raw HTML, ensuring clean and native editing inside the block editor. - YAML Front-Matter Support: Automatically parses settings like title, status (draft/publish), post type, categories, and tags directly from your file header.
- Table Spacing Auto-Fix: Automatically pre-processes Markdown tables to ensure they parse and align correctly in the WordPress table block.
- Enhanced Security Hardening:
- Enabled Parsedown Safe Mode to automatically escape and strip raw HTML tags, inline scripts, and unsafe protocols (e.g.
javascript:links). - Explicit sanitization of custom and extracted post titles via
sanitize_text_field(). - Enforced 500KB maximum file size limits to prevent server memory exhaustion (DoS).
- Enforced strict nonces, capability checks, and file validation.
- Enabled Parsedown Safe Mode to automatically escape and strip raw HTML tags, inline scripts, and unsafe protocols (e.g.
Installation
- Upload the
era-markdown-importerfolder to the/wp-content/plugins/directory, or upload the ZIP file through the WordPress admin panel. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Access the tool under Tools > Markdown Importer in your WordPress sidebar.
FAQ
-
Does this plugin support custom post types?
-
Yes, you can choose to import files as standard Posts, Pages, or any public Custom Post Type registered on your site.
-
Does it support YAML Front Matter?
-
Yes, it automatically parses YAML headers at the beginning of the file to map the post title, status, categories, and tags.
-
Is it Gutenberg compatible?
-
Yes, it converts Markdown elements into native, editable block editor blocks.
Avis
Il n’y a aucun avis pour cette extension.
Contributeurs & développeurs
« ERA Markdown Importer » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.
ContributeursTraduisez « ERA Markdown Importer » dans votre langue.
Le développement vous intéresse ?
Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.
Journal
1.0.2
- Compliance & Security: Removed debug logging logic and resolved a potential mock backdoor in developer mode.
- Uninstall Routine: Integrated database cleanup for custom plugin options.
1.0.1
- Security Hardening: Activated Parsedown Safe Mode to prevent Stored XSS and HTML injection.
- Input Sanitization: Added explicit title sanitization using
sanitize_text_field(). - Resource Optimization: Reduced maximum file size limit from 2MB to 500KB to prevent memory exhaustion.
- UI/UX Updates: Reflected the 500KB limit in the admin UI drag-and-drop zone.
1.0.0
- Initial release. Core drag-and-drop uploader, Parsedown parser, and HTML-to-Gutenberg block converter.