Skip to content

v1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 16:38
Immutable release. Only release title and notes can be modified.
4e93735

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 PlainText godoc now say that text is written as is, and point to EscapeText and EscapeTableCell.