Skip to content

Releases: PicGo/picgo-plugin-pic-migrater

v1.3.0

26 Aug 15:49
Compare
Choose a tag to compare

✨ Features

  • add i18n support (7f68481)

  • add oldContentWriteToNewFile option (1a7eee1)

  • support img tag src migrate (0e65d56), closes #45

  • Since v1.2.2, it's recommend to use the latest version of PicGo or PicGo-Core with this plugin or some features may not be used.

  • even more, now you can use this pluign with PicGo-Core in your node project!

const { PicGo } = require('picgo')
const PluginMigrater = require('picgo-plugin-pic-migrater')

const picgo = new PicGo()

picgo.setConfig({
  'picgo-plugin-pic-migrater': {
    newFileSuffix: '_new',
    include: '',
    exclude: ''
  }
})

const plugin = PluginMigrater(picgo)

plugin.migrateFiles(['/xxx/yyy.md']) // { total: number, success: number }

✨ Features

  • 新增 i18n 支持

  • 新增 oldContentWriteToNewFile 选项,开启后会把旧文件内容写入新文件,把迁移后的内容写入旧文件

  • 新增 markdown 中 img 标签中 src 图片链接迁移, closes [#45]

  • 从 v1.2.2 版本开始,推荐使用最新的 PicGo 或者 PicGo-Core 来体验插件的功能,否则有些功能可能无法使用。

  • 还有更多,现在你可以把在 Node.js 项目中配合 PicGo-Core 使用这个插件了:

const { PicGo } = require('picgo')
const PluginMigrater = require('picgo-plugin-pic-migrater')

const picgo = new PicGo()

picgo.setConfig({
  'picgo-plugin-pic-migrater': {
    newFileSuffix: '_new',
    include: '',
    exclude: ''
  }
})

const plugin = PluginMigrater(picgo)

plugin.migrateFiles(['/xxx/yyy.md']) // { total: number, success: number }