GoLang Port of legal_markdown