Repository navigation
Immutable
release. Only release title and notes can be modified.
This release adds one function, EscapeText. Every existing method writes the same bytes as in v1.2.0, and no exported symbol changes.
Added
EscapeText, which puts a backslash before every ASCII punctuation character so that a renderer shows text from users or other programs as written.PlainText, the headings, the lists and the other text methods keep writing their input unchanged, so Markdown in it is rendered; until now the package had no helper to show one string literally. Whitespace is left alone: line breaks and leading spaces or tabs keep their Markdown meaning.
Changed
- The package documentation and the
PlainTextgodoc now say that text is written as is, and point toEscapeTextandEscapeTableCell.