convert markdown to a pattern data JSON file