(s string)
| 453 | } |
| 454 | |
| 455 | func trimAngles(s string) string { |
| 456 | if len(s) >= 2 && s[0] == '<' && s[len(s)-1] == '>' { |
| 457 | return s[1 : len(s)-1] |
| 458 | } |
| 459 | return s |
| 460 | } |
| 461 | |
| 462 | // unescapePunctuation drops the backslash from every backslash-escaped ASCII |
| 463 | // punctuation character, which is how markdown spells a literal one. |