Documentation ¶
Overview ¶
Package drafty contains utilities for conversion from Drafty to plain text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlainText ¶
PlainText converts drafty document to plain text with some basic markdown-like formatting. Deprecated. Use Preview for new development.
func Preview ¶
Preview shortens Drafty to the specified length (in runes), removes quoted text, leading line breaks, and large content from entities making them suitable for a one-line preview, for example for showing in push notifications. The return value is a Drafty document encoded as JSON string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.