Pretty print error location #390
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Drup/zarith-ppx#1 (comment) came up the point that mdx doesn't pretty print error locations like the OCaml toplevel does.
As a very random example, here it uses carets to point to the location span:
(this is with
TERM=dumb
though; by default underlining is used, but that won't work in Markdown code blocks).Currently mdx doesn't quote nor pretty print the location, producing output like:
Quoting duplicates the (single-line) input, which might be too verbose, so such behavior might have to be optional.
The text was updated successfully, but these errors were encountered: