2.1.0
Breaking change
- Drop support of Node 13 due to compatibility issue; this doesn't prevent npm from installing this plugin in Node 13, it shows warning instead. [#96]
- Nodejs has officially dropped support of Node 13 since 1 Jun 2020.
- fix(turndown): headingStyle: 'atx' & codeBlockStyle: 'fenced' [#65]
- More in-line with markdown style preferred by Hexo.
Feature
- feat: import excerpt with markup [#64]
- Retain original markup of excerpt
title: foo bar date: 2020-01-01 00:00:00 --- Lorem ipsum [dolor](http://example.com/) sit amet, **nam** ex putant _intellegat_ reprehendunt. <!-- more --> Cu nulla aeterno nec, tibique deterruisset an eam, ea pro dolorem vituperata.
- Option to import image attachments (original WP link must be up) [#69] [#70] [#72] [#73] [#78] [#85] [#91]
- All attachments are imported by default, including original-sized and resized.
- Usage:
$ hexo migrate wordpress /path/export.xml --import-image
- Usage:
- There is an option to import original-size images only.
- Usage:
$ hexo migrate wordpress /path/export.xml --import-image original
- Usage:
- All attachments are imported by default, including original-sized and resized.
- Import nested categories [#89]
- Imported categories are also no longer nested anymore if the original are not.
- feat: 'default-category' option [#93]
Uncategorized
category is now skipped by default.- A default category can be set for posts without any category.
$ hexo migrate wordpress /path/export.xml --default-category 'unknown'
- Category name defaults to the value set in user configuration:
# _config.yml default_category: uncategorized
Fix
- fix: unescape title if escaped [#82]
- A post could be entitled
Some"Title"
, the fix is to detect the pattern and unescape it when necessary.
- A post could be entitled
- fix: stricter excerpt regex [#88]
- Now only the following variants of excerpt tag are valid.
<!--more-->
<!-- more-->
<!--more -->
<!-- more -->
- fix: handle title with double quotes [#67]
- Escape double quote before passing to yml parser
- fix: restore paragraph [#79]
- Paragraph lost issue only affects Classic Editor
- Import tags and categories separately [#81]
Documentation
- Add export instruction for Wordpress v5 [#84]