import yaml
import re


def _generate_param_markdown(param):
    """Generate a markdown compatible string from the parameters."""
    text = yaml.dump(param)
    text = re.sub("#.*?\n", "\n", text)
    text = text.replace("\n", "  \n")
    return text