feat: format mixed markup lines with break suppressed#244
Merged
Enter-tainer merged 1 commit intotypstyle-rs:masterfrom Mar 26, 2025
Merged
feat: format mixed markup lines with break suppressed#244Enter-tainer merged 1 commit intotypstyle-rs:masterfrom
Enter-tainer merged 1 commit intotypstyle-rs:masterfrom
Conversation
📊 Benchmark Performance Reportgroup base pr
----- ---- --
attrs-cetz-manual 1.00 86.4±1.06µs ? ?/sec 1.01 87.5±0.75µs ? ?/sec
attrs-codly 1.01 245.4±13.66µs ? ?/sec 1.00 242.1±3.85µs ? ?/sec
attrs-fletcher-diagram 1.00 51.1±0.49µs ? ?/sec 1.02 52.3±0.38µs ? ?/sec
attrs-fletcher-draw 1.00 153.4±1.88µs ? ?/sec 1.01 154.2±2.17µs ? ?/sec
attrs-tablex 1.00 465.5±3.97µs ? ?/sec 1.00 463.6±3.28µs ? ?/sec
attrs-touying-core 1.00 297.3±5.68µs ? ?/sec 1.00 296.7±2.38µs ? ?/sec
attrs-touying-utils 1.01 161.0±2.82µs ? ?/sec 1.00 159.6±1.50µs ? ?/sec
attrs-undergraduate-math 1.00 120.9±2.44µs ? ?/sec 1.00 120.6±1.40µs ? ?/sec
pretty-cetz-manual 1.07 803.9±5.46µs ? ?/sec 1.00 752.7±6.50µs ? ?/sec
pretty-codly 1.03 1851.1±17.24µs ? ?/sec 1.00 1805.4±29.77µs ? ?/sec
pretty-fletcher-diagram 1.03 530.6±9.11µs ? ?/sec 1.00 513.8±7.50µs ? ?/sec
pretty-fletcher-draw 1.04 1284.6±17.09µs ? ?/sec 1.00 1238.5±31.55µs ? ?/sec
pretty-tablex 1.03 3.5±0.03ms ? ?/sec 1.00 3.4±0.03ms ? ?/sec
pretty-touying-core 1.03 2.2±0.01ms ? ?/sec 1.00 2.2±0.01ms ? ?/sec
pretty-touying-utils 1.03 1239.6±13.28µs ? ?/sec 1.00 1202.1±18.53µs ? ?/sec
pretty-undergraduate-math 1.02 865.2±7.39µs ? ?/sec 1.00 845.5±37.95µs ? ?/secGenerated by GitHub Actions on Tue Mar 25 05:11:11 UTC 2025 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #142.
We introduce a break-suppressing rule. If an expression is mixed in texts, it will not break inside if it is single-line.
New tests are generated by Claude 3.7.
Note
If a block-level element (e.g., equation or multiline-raw block) appears in texts, we can insert line breaks before and after it. Needs discussion.