class Books::SummaryParser

Overview

Parses SUMMARY.md into a hierarchical chapter structure

Defined in:

books/summary_parser.cr

Class Method Summary

Class Method Detail

def self.extract_description(content : String) : String #

Extract description from SUMMARY.md (content between title and chapters)


[View source]
def self.parse(content : String) : Array(ChapterEntry) #

Parse SUMMARY.md content and return array of root chapters


[View source]