code: func NewMarkupContentFromMap(value map[string]interface{}) MarkupContent {
  	content := value[ContentKey].(string)
  	markup := SystemMarkupDefault
  	if m, ok := value[MarkupKey]; ok {
  		markup = m.(string)
  		// use default markup if the input is not supported
  		if !IsMarkupSupported(markup) {
  			markup = SystemMarkupDefault
  		}
  	}
  	return MarkupContent{Content: content, Markup: markup}
  }
docs: // NewMarkupContentFromMap creates a MarkupContent from the given Map,
  // filling the 'Markup' field with the default value if no entry was found in the input or if the given markup is not supported.
  // This avoids filling the DB with invalid markup types.