Releases: alvinwan/TexSoup
Releases · alvinwan/TexSoup
TexSoup 0.3.3
TexSoup 0.3.2
What's Changed
- It's contents not content, and all is only on expr not on nodes by @ivanistheone in #114
- Punctuation commands fix (Issue #111) by @ivanistheone in #116
- fix skip_envs did not skip nested environments (#120) by @bpiwowar in #128
- Fix parsing of
\defwithout braces around new command name by @masonproffitt in #132 - Keep control spaces by @masonproffitt in #133
- Add/fix some zero-argument signatures by @masonproffitt in #138
- Fix parsing of newlines after a backslash by @masonproffitt in #140
- Fix
replace_withon arguments of a node by @masonproffitt in #141 - Properly handle
deletewhen in an argument by @masonproffitt in #147 - Fix parsing of environments inside special commands by @JCGoran in #148
- Added regex flags to
search_regexmethod by @JCGoran in #149 - [codex] Add arXiv benchmark harness by @alvinwan in #164
- Fix issue with unmatched brackets in math mode by @roos-j in #159
- Fix missing
TexTextposition by @roos-j in #160 - [codex] Fix find_all docs example by @alvinwan in #165
- [codex] Fix standard copy support for TexNode by @alvinwan in #166
- [codex] Restore TokenWithPosition compatibility by @alvinwan in #167
- [codex] Fix back-to-back inline math parsing by @alvinwan in #168
- [codex] Fix special-command macro signatures by @alvinwan in #169
- [codex] Fix navigation docs typo by @alvinwan in #170
- [codex] Normalize item text as TexText by @alvinwan in #171
- [codex] Parse verbatim-like commands by @alvinwan in #172
- [codex] Fix command contents setter by @alvinwan in #173
- [codex] Bump version to 0.3.2 by @alvinwan in #175
New Contributors
- @bpiwowar made their first contribution in #128
- @masonproffitt made their first contribution in #132
- @JCGoran made their first contribution in #148
- @roos-j made their first contribution in #159
Full Changelog: 0.3.1...0.3.2
Math Environment Parsing
Improved Fault Tolerance, Modification Support
- can tolerate unclosed bracket or brace groups when
tolerance=1kwarg is given toTexSoupconstructor - more ubiquitous support for
.name,.string,.contentsin-place modification - improved documentation
under the hood
- more robust generic string + spacer tokenization
- more uniform usage of
read_command+ genericread_to_peekconverter - coverage of more in-place modification scenarios
Fault Tolerance + Robustness
Bug Fixes
Docs, More Streamlined API
- added documentation at https://texsoup.alvinwan.com
- clearer documentation and naming convention for content:
contents,all(whitespace-preserving v. not) - more list-like apis for modifying parse tree:
append,insert,removeetc. - 110+ tests for 100% test coverage!
Fix Math Environment Parsing
- Fix math environment parsing
- Recognize more math environments
- Fix items with labels
- Add regex search
Advanced Item Parsing
\items are now parsed correctly:
- includes correctly tex parsing for all item contents (e.g., environments, text, commands etc.)
- respects strange item parsing rules: preceding whitespace can be arbitrarily long, but once content starts, there can only be one line break between content (not 2 successive line breaks)
- (biggest change) adds a new line to the end of each
\item
Command Argument Parsing Fix
- fixed command argument parsing (ate up strange characters at random)