code: func getRstContent(ctx *RenderingContext) []byte {
  	path := getRstExecPath()
  
  	if path == "" {
  		jww.ERROR.Println("rst2html / rst2html.py not found in $PATH: Please install.\n",
  			"                 Leaving reStructuredText content unrendered.")
  		return ctx.Content
  
  	}
  	jww.INFO.Println("Rendering", ctx.DocumentName, "with", path, "...")
  	var result []byte
  	// certain *nix based OSs wrap executables in scripted launchers
  	// invoking binaries on these OSs via python interpreter causes SyntaxError
  	// invoke directly so that shebangs work as expected
  	// handle Windows manually because it doesn't do shebangs
  	if runtime.GOOS == "windows" {
  		python := getPythonExecPath()
  		args := []string{path, "--leave-comments", "--initial-header-level=2"}
  		result = externallyRenderContent(ctx, python, args)
  	} else {
  		args := []string{"--leave-comments", "--initial-header-level=2"}
  		result = externallyRenderContent(ctx, path, args)
  	}
  	// TODO(bep) check if rst2html has a body only option.
  	bodyStart := bytes.Index(result, []byte("<body>\n"))
  	if bodyStart < 0 {
  		bodyStart = -7 //compensate for length
  	}
  
  	bodyEnd := bytes.Index(result, []byte("\n</body>"))
  	if bodyEnd < 0 || bodyEnd >= len(result) {
  		bodyEnd = len(result) - 1
  		if bodyEnd < 0 {
  			bodyEnd = 0
  		}
  	}
  
  	return result[bodyStart+7 : bodyEnd]
  }
docs: // getRstContent calls the Python script rst2html as an external helper
  // to convert reStructuredText content to HTML.