MudBlazor.Markdown icon indicating copy to clipboard operation
MudBlazor.Markdown copied to clipboard

New feature -toc

Open 0use-TE opened this issue 9 months ago β€’ 2 comments

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

0use-TE avatar Mar 29 '25 12:03 0use-TE

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 ↓. Image

MihailsKuzmins avatar Apr 05 '25 13:04 MihailsKuzmins

@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 avatar Apr 05 '25 14:04 0use-TE

@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..

MihailsKuzmins avatar May 30 '25 10:05 MihailsKuzmins

@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.

0use-TE avatar Jun 01 '25 05:06 0use-TE