code: func (p pageContent) contentToRender(renderedShortcodes map[string]string) []byte {
  	source := p.source.parsed.Input()
  
  	c := make([]byte, 0, len(source)+(len(source)/10))
  
  	for _, it := range p.cmap.items {
  		switch v := it.(type) {
  		case pageparser.Item:
  			c = append(c, source[v.Pos:v.Pos+len(v.Val)]...)
  		case pageContentReplacement:
  			c = append(c, v.val...)
  		case *shortcode:
  			if !p.renderable || !v.insertPlaceholder() {
  				// Insert the rendered shortcode.
  				renderedShortcode, found := renderedShortcodes[v.placeholder]
  				if !found {
  					// This should never happen.
  					panic(fmt.Sprintf("rendered shortcode %q not found", v.placeholder))
  				}
  
  				c = append(c, []byte(renderedShortcode)...)
  
  			} else {
  				// Insert the placeholder so we can insert the content after
  				// markdown processing.
  				c = append(c, []byte(v.placeholder)...)
  
  			}
  		default:
  			panic(fmt.Sprintf("unkown item type %T", it))
  		}
  	}
  
  	return c
  }
docs: // returns the content to be processed by Blackfriday or similar.