Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
458 B

using System.Collections.Generic;
namespace Volo.Docs.TableOfContents;
public interface ITocGeneratorService
{
List<TocHeading> GenerateTocHeadings(string markdownContent);
List<TocItem> GenerateTocItems(List<TocHeading> tocHeadings, int topLevel, int levelCount);
int GetTopLevel(List<TocHeading> tocHeadings);
List<TocItem> GenerateTocItems(string markdownContent, int levelCount, int? topLevel = null);
}