def get_tag(commands):
    """Generates a preprocessor tag from a set of grid commands."""
    # Extra line break prevents unclosed paragraphs in markdown HTML output
    return "\n<!--grid:%s-->" % ';'.join([str(cmd) for cmd in commands])