from typing import List


def remove_frontmatters(content: List[str]) -> List[str]:
    """
    Remove obsidian-specific frontmatters
    """

    # Skip if no frontmatters
    if len(content) == 0 or not content[0].startswith("---"):
        return content

    # Search for line number where frontmatters ends
    frontmatter_end = -1
    for i, line in enumerate(content[1:]):
        if line.startswith("---"):
            frontmatter_end = i
            break

    # Return content without frontmatters
    if frontmatter_end > 0:
        return content[frontmatter_end + 2:]

    # No frontmatters ending tag
    return content