Skip to content

2.0.1

Latest
Compare
Choose a tag to compare
@mattjennings mattjennings released this 16 Nov 01:52
· 3 commits to main since this release

Thanks to @yordis for doing all the work on this one.

Features

  • MDX support

Breaking Changes

  • readingTime is no longer stored under data.fm.readingTime of output, instead just data.readingTime
    • If you were using this with mdsvex, this will break compatibility with it. However, they are removing support for unified plugins (remark / rehype), so it soon won't matter anyway. You can stay on v1 of remark-reading-time for the time being.
  • Follows standard remark config syntax for passing in parameters:
// old
remark().use(remarkReadingTime({ attribute: 'something' }))

// new
remark().use(remarkReadingTime, { attribute: 'something' })