Skip to content

Conversation

@QuadnucYard
Copy link
Collaborator

@QuadnucYard QuadnucYard commented Apr 6, 2025

Fixed some bugs introduced in #247 and #248.

  • Correctly handles in-equation comments before and after Math.
  • Fixed infinite spaces added before // in math.
  • Fixed extra indent of array args in math.
  • Eats spaces in MathAttach and MathRoot.

@github-actions
Copy link

github-actions bot commented Apr 6, 2025

📊 Benchmark Performance Report

group                        base                                   pr
-----                        ----                                   --
pretty-cetz-manual           1.00   761.5±10.88µs        ? ?/sec    1.00    762.5±7.82µs        ? ?/sec
pretty-codly                 1.00  1805.7±15.58µs        ? ?/sec    1.00  1800.4±17.10µs        ? ?/sec
pretty-cpe                   1.06     12.3±0.74ms        ? ?/sec    1.00     11.6±2.09ms        ? ?/sec
pretty-fletcher-diagram      1.01    518.7±6.57µs        ? ?/sec    1.00   514.7±12.21µs        ? ?/sec
pretty-fletcher-draw         1.01  1247.9±14.35µs        ? ?/sec    1.00  1238.4±13.77µs        ? ?/sec
pretty-tablex                1.01      3.4±0.03ms        ? ?/sec    1.00      3.4±0.03ms        ? ?/sec
pretty-touying-core          1.01      2.2±0.02ms        ? ?/sec    1.00      2.2±0.02ms        ? ?/sec
pretty-touying-utils         1.00  1210.7±13.57µs        ? ?/sec    1.00  1206.9±21.16µs        ? ?/sec
pretty-undergraduate-math    1.00   860.2±11.91µs        ? ?/sec    1.00    861.5±8.75µs        ? ?/sec

Generated by GitHub Actions on Wed Apr 9 14:24:34 UTC 2025

@QuadnucYard QuadnucYard force-pushed the fix-equation-comment branch from 3d1d87b to 30c63ab Compare April 9, 2025 14:20
@QuadnucYard QuadnucYard changed the title fix: correct handling comments directly in equations fix: correct handling comments directly in equations and spaces in math Apr 9, 2025
@QuadnucYard QuadnucYard merged commit f68c9e1 into typstyle-rs:master Apr 9, 2025
30 checks passed
@QuadnucYard QuadnucYard deleted the fix-equation-comment branch April 9, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants