(href string)
| 159 | var schemeRe = regexp.MustCompile(`^[a-zA-Z][a-zA-Z\d+.\-]*:`) |
| 160 | |
| 161 | func regexpMatchScheme(href string) (bool, error) { |
| 162 | return schemeRe.MatchString(href), nil |
| 163 | } |
| 164 | |
| 165 | // BuildExcerpt makes a short plaintext preview from markdown. |
| 166 | func BuildExcerpt(body string) string { |