Replies: 1 comment 9 replies
-
One possible approach is to use hooks. // server/plugins/content.ts
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('content:file:beforeParse', (file) => {
if (file._id.endsWith('.md')) {
// counting logic
}
})
}) |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I created a time to read function and I was wondering if there was a way to get the amount of words or characters in an article. I am confused because when I look at the queried content it returns to me an AST.
Beta Was this translation helpful? Give feedback.
All reactions