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 ¶ added in v0.18.0
PlainText converts drafty document to plain text with some basic markdown-like formatting. Deprecated: use Preview for new development.
func Preview ¶ added in v0.16.10
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.