code: func NewContentSpec(cfg config.Provider) (*ContentSpec, error) {
  	bf := newBlackfriday(cfg.GetStringMap("blackfriday"))
  	spec := &ContentSpec{
  		BlackFriday:                bf,
  		footnoteAnchorPrefix:       cfg.GetString("footnoteAnchorPrefix"),
  		footnoteReturnLinkContents: cfg.GetString("footnoteReturnLinkContents"),
  		summaryLength:              cfg.GetInt("summaryLength"),
  		BuildFuture:                cfg.GetBool("buildFuture"),
  		BuildExpired:               cfg.GetBool("buildExpired"),
  		BuildDrafts:                cfg.GetBool("buildDrafts"),
  
  		Cfg: cfg,
  	}
  
  	// Highlighting setup
  	options, err := parseDefaultPygmentsOpts(cfg)
  	if err != nil {
  		return nil, err
  	}
  	spec.defatultPygmentsOpts = options
  
  	// Use the Pygmentize on path if present
  	useClassic := false
  	h := newHiglighters(spec)
  
  	if cfg.GetBool("pygmentsUseClassic") {
  		if !hasPygments() {
  			jww.WARN.Println("Highlighting with pygmentsUseClassic set requires Pygments to be installed and in the path")
  		} else {
  			useClassic = true
  		}
  	}
  
  	if useClassic {
  		spec.Highlight = h.pygmentsHighlight
  	} else {
  		spec.Highlight = h.chromaHighlight
  	}
  
  	return spec, nil
  }
docs: // NewContentSpec returns a ContentSpec initialized
  // with the appropriate fields from the given config.Provider.