(s string)
| 416 | } |
| 417 | |
| 418 | func trimAngles(s string) string { |
| 419 | if len(s) >= 2 && s[0] == '<' && s[len(s)-1] == '>' { |
| 420 | return s[1 : len(s)-1] |
| 421 | } |
| 422 | return s |
| 423 | } |
| 424 | |
| 425 | // unescapePunctuation drops the backslash from every backslash-escaped ASCII |
| 426 | // punctuation character, which is how markdown spells a literal one. |