Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I wrote something similar for HTML:

https://skorokithakis.github.io/expounder/



Fun. Quick user experience report: expanded "atoms"; the effort to find the boundaries of the insert was a thing ("where does it start? ah, next sentence.", "oh, I read this bit already, so I'm past the end"); with an unmoved mouse, I tried clicking "atoms" again to toggle the insert away (didn't). Perhaps color the insert?


Thanks for the feedback, there should be a fade-in when the text expands, and there's an option to click again to close, but IIRC it's not enabled on the demo. I think it's unnecessary, but it bothers some people to not be able to close them back up.


Fantastic Stavros, I love it. Really close concepts we've got here. I thought of exactly what you've made a few weeks ago as... some words may or may not be jargon on a certain "layer" of my essay format. So what I barely-envisioned was what you put into code here. Will bookmark it!


Yep! I was thinking of your layers idea while making this, but I wanted something that would allow people to drill down in a more targeted way (rather than generally). You're right that it usually ends up being used to define terms, but you can also use it well for elaboration.

I think the ideal solution will be some sort of middle ground, where much of the drilling down will be done by clicking on specific words or sentences, but a slider would allow you to generally expand more text in the article, for things that aren't exactly related to other sentences.

It does take a bit of doing, and drilling down to another layer should also be able to delete text, so the wording flows better.

If you want to talk about this more, feel free to send me an email, I find this problem very interesting.


I would love if it was possible to further drill down into topics (expand further in already expanded parts, up to many levels deep). I long ago hoped to one day try and write an explanation of Shor's algorithm in such a format, with many layers of drill-down available, to cater to readers of different level of knowledge. And also with possibility to collapse back the areas, and bookmark a specific expanded state of the text.


You already can, just put a link in the expanded text.


Is collapsing back also allowed, as I asked above? :) didn't see any clear UX indication to that effect :( Not 100% essential (I guess could try adding it as a contribution if the others were there), but how about the bookmarking aspect I also mentioned?


You can collapse back, but you can't bookmark right now. I guess you could do bookmarking with anchors, but what's the use case?


This is a super neat tool—thank you for creating and sharing!


Thanks, I'm glad you like it!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: