hexo-renderer-marked 3.0.0
Breaking change
- Remove codeblock highlight. #134
- This plugin is now neutral to the code highlight library used
- Drop support of Node 8 #155
Feature
prependRoot
option to prependroot:
value to image path. #111- This is useful when you have custom
root:
value. - Example:
root: /blog/
marked:
prependRoot: true # disabled by default- When embedding an internal image, instead of using
![image-title](/blog/foo/bar.jpg)
, you can save some typing by using![image-title](/foo/bar.jpg)
instead. When this feature is enabled,/blog
will be automatically prepended to/foo/bar.jpg
.
- This is useful when you have custom
external_link
option to open links in new tab. #116 #119- Usage:
external_link:
enable: false
exclude: []
nofollow: falseexclude: ['foo.com', 'bar.net']
skips over links that start withfoo.com
orbar.net
, e.g.https://foo.com/post-a/
&https://bar.net/post-b/
. Subdomains need to be specified when applicable, including “www”; the example given here doesn’t apply tohttp://www.bar.com/post-c
.nofollow: true
addsrel="noopener external nofollow noreferrer"
for SEO, otherwise it’s justrel="noopener"
ifexternal_link:
is enabled.
Support title attribute in image link #122
![caption](http://bar.com/b.jpg "a-title")
-><img src="http://bar.com/b.jpg" alt="caption" title="a-title">
Ability to override the default rendering functions. Refer to the docs for instruction. #129
- Example usage include adding a custom class name to a link or an image embed.
Fix
- For safety, all links and image links are now encoded by default. #112
- Example:
/foo/bár.jpg
->/foo/b%C3%A1r.jpg
- Example:
Refactor
- Utilize existing
isExternalLink
of hexo-util to simplify codebase. #124
Dependency
hexo-migrator-wordpress 2.0.0
v2 is a complete rewrite to utilize modern APIs. By no means it is feature-complete, please test it on your wordpress.xml and report any item that did not get imported.
Breaking change
- Requires Node 12+, drop support < Node 12 #61
- A requirement of camaro v6 which utilizes
worker_threads
.
- A requirement of camaro v6 which utilizes
Feature
--skipduplicate
option to skip importing posts which have similar title as existing ones. #57- Disabled by default
- Usage:
hexo migrate wordpress /path/to/wordpress.xml --skipduplicate
--limit [number]
option to set the maximum number of posts to import. #57- Default to importing all posts.
- Usage:
hexo migrate wordpress /path/to/wordpress.xml --limit 3
--alias
option to redirect post to wordpress-hosted post. #57- Requires hexo-generator-alias
- Usage:
hexo migrate wordpress /path/to/wordpress.xml --alias
Refactor
- Complete rewrite to utilize modern API/library. It enables more flexible parsing of input xml with the ability to support custom elements and future formats. #57
Dependency
hexo-migrator-rss 1.0.0
v1 is a complete rewrite to utilize modern APIs. By no means it is feature-complete, please test it on your atom.xml/rss.xml and report any item that did not get imported.
Breaking change
- Requires Node 12+, drop support < Node 12 #60
- A requirement of camaro@6 which utilizes
worker_threads
.
- A requirement of camaro@6 which utilizes
Feature
--skipduplicate
option to skip importing posts which have similar title as existing ones. #44- Disabled by default
- Usage:
hexo migrate rss /path/to/feed.xml --skipduplicate
--limit [number]
option to set the maximum number of posts to import. #37- Default to importing all posts.
- Usage:
hexo migrate rss /path/to/feed.xml --limit 3
Refactor
- Complete rewrite to utilize modern API/library. It enables more flexible parsing of input feed with the ability to support custom elements and future formats. #34