aboutsummaryrefslogtreecommitdiff
path: root/modules/markup
Commit message (Collapse)AuthorAge
* feature/org-mode: fix compile errorUnknwon2017-05-17
|
* modules/markup: initial support for org-mode (#4373)Unknwon2017-05-17
|
* Refactoring: rename modules -> pkgUnknwon2017-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.goUnknwon2017-03-31
|
* modules/markup: rename Markdown render fucntionsUnknwon2017-03-31
| | | | | The unified function 'Markdown' accepts both string or []byte type input and renders to HTML with []byte type.
* modules/markup: protect sanitizer from possible modificationUnknwon2017-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).
* modules: rename markdown -> markupUnknwon2017-03-31
To further support more markup languages (e.g. Org-mode, AsciiDoc, reStructuredText), the name 'markdown' is inappropriate. This is the first step towards more markup language support.