You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: render_markdown.go
    path of file: ./repos/go-pretty/list
    
    the code of the file until where you have to start completion: package list

// RenderMarkdown renders the List in the Markdown format. Example:
// | * Game Of Thrones
// |    
    
func (l *List) RenderMarkdown() string {
	// make a copy of the original style and ensure it is restored on exit
	originalStyle := l.style
	defer func() {
		if originalStyle == nil {
			l.style = nil
		} else {
			l.SetStyle(*originalStyle)
		}
	}()

	// override whatever style was set with StyleMarkdown
	l.SetStyle(StyleMarkdown)

	// render like a regular list
	return l.Render()
}