Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Refactoring: rename modules -> pkg | Unknwon | 2017-04-04 |
| | | | | | | | | Reasons to change: 1. Shorter than 'modules' 2. More generally used by other Go projects 3. Corresponds to the naming of '$GOPATH/pkg' directory | ||
* | modules/markup: move common functions to markup.go | Unknwon | 2017-03-31 |
| | |||
* | modules/markup: protect sanitizer from possible modification | Unknwon | 2017-03-31 |
Only expose public APIs for 'Sanitize' and 'SanitizeBytes' to eliminate unintentional modifications to sanitizer policy. Also use 'sync.Once' to make sure multiple calls of 'NewSanitizer' is safe (although should never happen, but this is a better way). |