class
Books::SummaryParser
- Books::SummaryParser
- Reference
- Object
Overview
Parses SUMMARY.md into a hierarchical chapter structure
Defined in:
books/summary_parser.crClass Method Summary
-
.extract_description(content : String) : String
Extract description from SUMMARY.md (content between title and chapters)
-
.parse(content : String) : Array(ChapterEntry)
Parse SUMMARY.md content and return array of root chapters
Class Method Detail
def self.extract_description(content : String) : String
#
Extract description from SUMMARY.md (content between title and chapters)
def self.parse(content : String) : Array(ChapterEntry)
#
Parse SUMMARY.md content and return array of root chapters