New feature -toc
Project Url: https://github.com/0use-TE/MudBlazor.Markdown.Toc
Hello, I am Ouse. I used the warehouse when I was doing my personal blog, but it lacked the function of generating directory, so I implemented the function. You can go to the project website to check the function and implementation, the implementation is very simple, JavaScript first obtains the header tag below the MudMarkdown component. This is then parsed into json and passed to blazor, which then renders it to the page using the MurTreeView component in mudblazor. I would like to ask if you think it can be incorporated into the MudBlazor.Markdown project or as an extension package for the repositorie? Looking forward to your reply! @my-nihongo
https://github.com/user-attachments/assets/442ca69a-292a-40dd-a755-e5b843935379
Hi, @0use-TE. Thank you for the proposal. It sounds interesting, so I will try to implement it, but more c#-blazor-way. I would like to avoid using JS/TS in the library as much as possible (MathJax and CodeHighlight are exceptions).
I always use GitHub as a benchmark for markdown capabilities, so I will try to implement something like this β.
@MihailsKuzmins Thank you very much for accepting my suggestion. This is the greatest encouragement for me! If you manage to do it, please let me know. I will use your code as soon as possible!π
@0use-TE sorry, it is taking some time. I am almost done with the implementation, but somehow I need to address two important issues:
- table of contents is not sticky
- scrolling events interfere with scrollIntoView and the active element cannot be set correctly.
I hope I can find a solution during the next week..
@0use-TE sorry, it is taking some time. I am almost done with the implementation, but somehow I need to address two important issues:
- table of contents is not sticky
- scrolling events interfere with scrollIntoView and the active element cannot be set correctly.
I hope I can find a solution during the next week..
Thank you for your reply. Thank you very much for your work. I wish you an early solution to the problem.πππLooking forward to this exciting feature.