pub fn load_extra_syntaxes(&mut self, base_path: &Path) -> Result<()> {
        let extra_syntaxes = &self.markdown.extra_syntaxes;
        if extra_syntaxes.is_empty() {
            return Ok(());
        }

        let mut ss = SyntaxSetBuilder::new();
        for dir in extra_syntaxes {
            ss.add_from_folder(base_path.join(dir), true)?;
        }
        self.markdown.extra_syntax_set = Some(ss.build());

        Ok(())
    }
/// Attempt to load any extra syntax found in the extra syntaxes of the config
/// TODO: move to markup.rs in 0.14
Attempt to load any extra syntax found in the extra syntaxes of the config
TODO: move to markup.rs in 0.14
Attempt to load any extra syntax found in the extra syntaxes of the config TODO : move to markup . rs in 0 . 14
pub fn load_extra_syntaxes(&mut self, base_path: &Path) -> Result<()> {
        let extra_syntaxes = &self.markdown.extra_syntaxes;
        if extra_syntaxes.is_empty() {
            return Ok(());
        }
        let mut ss = SyntaxSetBuilder::new();
        for dir in extra_syntaxes {
            ss.add_from_folder(base_path.join(dir), true)?;
        }
        self.markdown.extra_syntax_set = Some(ss.build());
        Ok(())
    }
pub fn load_extra_syntaxes ( & mut self , base_path : & Path ) -> Result < ( ) > { let extra_syntaxes = & self . markdown . extra_syntaxes ; if extra_syntaxes . is_empty ( ) { return Ok ( ( ) ) ; } let mut ss = SyntaxSetBuilder :: new ( ) ; for dir in extra_syntaxes { ss . add_from_folder ( base_path . join ( dir ) , true ) ? ; } self . markdown . extra_syntax_set = Some ( ss . build ( ) ) ; Ok ( ( ) ) }
Attempt to load any extra syntax found in the extra syntaxes of the config
TODO: move to markup.rs in 0.14
Attempt to load any extra syntax found in the extra syntaxes of the config TODO : move to markup . rs in 0 . 14
&mut self
base_path
&Path