| 开发者 | cck23 |
|---|---|
| 更新时间 | 2026年5月9日 23:02 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Tools > Marklane. Marklane can create a new post or update an existing one by slug, apply categories, tags, dates, featured images, post status, and Polylang language links in one import. When frontmatter is omitted, it can derive a draft title and slug from the first H1 and filename.
If you enable Ignore invalid frontmatter, the plugin ignores only the invalid frontmatter keys and keeps the valid ones. If the YAML block itself is broken, it falls back to the filename and first H1 while keeping the selected post status and date options.
Plugin page: https://happas.jp/marklane/
Features:
featuredImage against existing attachmentslang and translations frontmatterleague/commonmarktitleslugpostTypeexcerptstatusdatecategorytagsfeaturedImagelangtranslationstitle falls back to the first H1 and then the filename. slug falls back to the filename. postType defaults to post, and status defaults to draft.
For more frontmatter examples:
https://happas.jp/en/marklane/#yaml-frontmatter-example
Known limitations:
Plugins > Add New.Marklane.Install Now, then activate the plugin.Tools > Marklane./wp-content/plugins/ and activate it from the Plugins screen.You can set values such as:
titleslugpostTypeexcerptstatusdatecategorytagsfeaturedImagelangtranslationspostType defaults to post. Public registered post types are allowed by default, except attachments. Site-specific overrides can be applied with the marklane_whitelist filter.
If title is omitted, Marklane uses the first H1 and then the filename. If slug is omitted, Marklane derives it from the filename.
Yes.
The plugin matches an existing post by slug + post_type, or by slug + post_type + lang when Polylang is in use.
Dry Run shows the planned action before saving anything, including:
featuredImage resolutionRelative image paths are resolved against Media Library images in the same directory as the selected Markdown attachment.
When Markdown and supporting images are uploaded together, the supporting images are stored as flat Media Library files, so nested folder paths are not preserved.
The featuredImage frontmatter field follows the same rule and sets the post thumbnail when the target image is already registered in the Media Library. If FIFU is active, featuredImage can also point to an external URL.
For more predictable results, use fully unique filenames and, if possible, disable WordPress's year/month based upload folders before uploading the Markdown file and related images.
Yes. Marklane keeps league/commonmark as the Markdown converter and uses strict CommonMark behavior by default. If your Japanese writing workflow needs text such as **「text」**続き to render as strong text, enable the CJK compatibility pass:
add_filter('marklane_enable_markdown_compatibility_preprocessing', '__return_true');
Advanced sites can replace the matching pattern with the marklane_markdown_compatibility_strong_boundary_pattern filter. For example, use a custom pattern for Japanese quoted text followed by a letter or number.
Yes.
When Polylang is active, you can use lang and translations in frontmatter to connect translated posts.
text/markdown style MIME detection for Markdown uploads.featuredImage frontmatter, including external URLs when FIFU is active.featuredImage resolution.date handling for ISO 8601 values.