escape::html
now removes invalid XHTML characters
- Fix LaTeX escaping (hce)
- Update dependencies
- French formatter now also specifies narrow and en breaking spaces for LaTeX instead of trusting it to use the good one
french::format_tex
andfrench::format_html
now also escape characters for LaTeX/HTML.- Since that's a sligtly breaking change, and the first one in a few
years, it seemed like a good reason to bump version to 1.0. This led
to a few more breaking changes:
escape::nb_spaces
, which was already deprecated, has been removed;escape::nnbsp
has been deprecated and renamedescape::nb_spaces_html
.
- Update Regex dependency to newer version
- Escape square braces in LaTeX
- Add
escape::nnbsp
function that should be more reliable to allow "proper" displaying of narrow non breaking spaces on nonconforming devices thanescape::nb_spaces
. - Thus,
escape::nb_spaces
is deprecated.
- Upgrade Regex dependency to 0.2.
- Removed debug println (oops sorry should have checked before publishing previous release!)
- Fix the french formatting algorithm for short quotes.
- Change default
threshold_quote
value to 20.
- Fix possible
character boundary
panic inclean::quotes
.
- Added a binary, so it can be used interactively.
- Added
clean::dashes
that replaces--
to–
and---
to—
. - Added
clean::guillemets
that replaces<<
to«
and>>
to»
.
Breaking changes as the API was modified:
- The module
french
is no longer public, onlyFrenchFormatter
is. typographic_quotes
has been renamedquotes
and is no longer directly exported, useclean::quotes
.remove_whitespaces
has been renamedwhitespaces
and is no longer directly exported, useclean::whitespaces
.ellipsis
is no longer directly exported, useclean::ellipsis
.escape_html
has been renamedhtml
and is no longer directly exported, useescape::html
.escape_tex
has been renamedtex
and is no longer directly exported, useescape::tex
.escape_nb_spaces
has been renamednb_spaces
and is no longer directly exported, useescape::nb_spaces
.escape_nb_spaces_tex
has been renamednb_spaces_tex
and is no longer directly exported, useescape::nb_spaces_tex
.escape_quotes
has been renamedquotes
and is no longer directly exported, useescape::quotes
.
- Enhanced
typographic_quotes
's heuristics, and added more tests. - Added
ellpisis
function, and use it for inFrenchFormatter
.
- Enhanced
typographic_quotes
's heuristics.
- Added
typographic_quotes
function. - Made
FrenchFormatter
use it by default (can be disabled by settingtypographic_quotes
to false).
- Now use Travis for continuous integration.
- Found & documented rustc minimal version to build this lib (1.6.0)
FrenchFormatter
now implements theDefault
andDebug
traits.- Some functions or structs are now reexported so they can be accessed
more easily:
FrenchFormatter
,escape_html
,escape_tex
,remove_whitespaces
.
- Added
format_tex
to theFrenchFormatter
.
- Added
remove_whitespaces
from Crowbook 0.9.1. - Added
FrenchFormatter
which is basically theFrench
cleaner from Crowbook 0.9.1. - Added
escape_nb_spaces_tex
.
- Initial release, taking
escape_html
,escape_tex
,escape_nb_spaces
andescape_quotes
from Crowbook 0.9.1.