DRAFT: rustdoc: math-core LaTeX MathML test#151918
DRAFT: rustdoc: math-core LaTeX MathML test#151918notriddle wants to merge 2 commits intorust-lang:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This is intended for crater to see how many crates error if we just enable math-core. This isn't an exhaustive test, because some crates will render worse without actually producing an error, but it should gives us some bug reports to open against the math-core repo.
f86d573 to
1a4563b
Compare
| let mathml = self | ||
| .converter | ||
| .convert_with_local_counter(&latex, MathDisplay::Inline) | ||
| .expect("a production-ready version of this should handle the error somehow"); |
There was a problem hiding this comment.
Obviously, we don't want to ICE on invalid
There was a problem hiding this comment.
Out of curiousity, what would we do if it errors? Just printing the latex as-is is the most obvious solution that comes to mind
There was a problem hiding this comment.
And emit a warning, too.
There was a problem hiding this comment.
Yeah. We could also put the mathml behind an optional feature, that would emit hard errors on invalid code
There was a problem hiding this comment.
If it's just turning a warning into a hard error, we get that by implementing a warn-by-default lint.
I'm more worried about cases where we don't get an error, but the user didn't actually want LaTeX rendering. The flanking rules in pulldown-cmark's math span parser are supposed to avoid that, but I don't know how to measure their effectiveness.
This comment has been minimized.
This comment has been minimized.
|
@bors try |
This comment has been minimized.
This comment has been minimized.
DRAFT: rustdoc: math-core LaTeX MathML test
|
@craterbot run mode=rustdoc |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
Let's retry the regressed crates, crater has some issues lately. @craterbot run mode=rustdoc name=pr-151918-2 crates=https://crater-reports.s3.amazonaws.com/pr-151918/retry-regressed-list.txt p=1 |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
And, finally, here's the labeled results: https://gist.github.com/notriddle/108fe255ffa9f490ed8ade262935eb53#file-math-core-test-md And the summary: https://gist.github.com/notriddle/108fe255ffa9f490ed8ade262935eb53#file-report-txt |
DO NOT MERGE AS IS
This is intended for crater to see how many crates error if we just enable math-core. This isn't an exhaustive test, because some crates will render worse without actually producing an error, but it should gives us some bug reports to open against the math-core repo.
cc @Urgau