Thanks to @yordis for doing all the work on this one.
Features
- MDX support
Breaking Changes
readingTime
is no longer stored underdata.fm.readingTime
of output, instead justdata.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.
- 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
- Follows standard remark config syntax for passing in parameters:
// old
remark().use(remarkReadingTime({ attribute: 'something' }))
// new
remark().use(remarkReadingTime, { attribute: 'something' })