Skip to main content

process_chapter

Function process_chapter 

Source
pub fn process_chapter(
    content: &str,
    chapter_dir: &Path,
    registry: &HashMap<String, LanguageEntry>,
) -> Result<String>
Expand description

Replace all {{ #treesitter ... }} directives in content with the extracted code. Directives that fail to resolve are reported as errors.