Skip to content

Missing features that Crater found #827

@notriddle

Description

@notriddle

We’ve been looking into using this project to implement built-in math support in Rustdoc.

To test if this library is a suitable replacement for what people are currently using (JS libraries, mostly), I ran a Rust ecosystem test build with pulldown-cmark’s math support and this crate. I set up to fail noisily if
this library failed to parse, so that the build failures gave me a list of issues that the user would encounter if we shipped this library to them as-is.

https://gist.github.com/notriddle/108fe255ffa9f490ed8ade262935eb53

rust-lang/rust#151918

The results show many cases where $ is triggering a math span where the author didn’t intend one, and a bunch of problems caused by markdown escaping weirdness. Those problems are not your problems.

Here’s the problems that seem to exist in this library, and affect more than one crate:

  • \textrm
  • \textsf
  • \ket
  • \floor
  • \Z
  • \rm
  • \R
  • \mathbin
  • \space
  • \small
  • \newline
  • \bold

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions