Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
Wrap provides http.Handler middleware. It wraps another http.Handler and renders markdown it returns under the correct conditions.
The correct conditions for rendering **markdown** as **HTML** is when the nested http.Handler returns something with a `Content-Type` of `text/markdown` AND the `Accept` header in the HTTP request does NOT contain `text/markdown`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.