feat: add ReadingTime - #321
Conversation
aim to add an indication of the approximate reading time this is only for the markdown output of cells
|
Wow this is awesome, and the implementation is super good!! Congrats! I would be very happy to merge this 🌟🌟🌟🌟🌟 Thanks so much! |
…ver system, global state management, and content extraction utilities - Introduce a global state management system for reading time instances. - Implement a DOM observer system to monitor changes in the notebook and cells. - content extraction methods to accurately count words from markdown, HTML, and Julia code. - Improved the style
|
Thanks!! I got lost in trying to parse input code, and realised that Pluto lazy loads the input cells so wasnt accurate, if there a way to get the code inputs ahead of time that would be great, but it would probaly impact perfomance so probably not worth it. Maybe something that can live on the server? I'll can go make a PR for the PlutoUI featured notebook to add some docs if needed Everything should be ready now! |
also remove some comments and fixing some indentation
everything was in different cell blokcs and now are all in one
|
Sorry for the delay! |
A new widget for showing the estimated reading time of all the markdown output in a Pluto Notebook
A few notes:
Motivation:
I started to write some long notebooks (quite text heavy) and I wanted to show an estimate of the reading time and I was inspired by the "reading time" extensions that you find in some blog websites framework
If this is that is interesting I'd be happy to try and make it prettier or try to incoporate a more complete time estimation by including other stuff like lines of code or smth
Let me know :))