Docs for MvcOptions.RespectBrowserAcceptHeader don't render */* media type correctly.
See original GitHub issueThe source code for MvcOptions.RespectBrowserAcceptHeader mentions the */*
media type as shown by the red arrow below:
…however the */*
media type ends up rendering as a forward slash /
on the live docs as shown by the red arrow below:
I believe this is caused by converting the XML doc comments to markdown before converting to HTML for the live docs. The reason I think markdown is to blame is because even in this github window if you type */*
without enclosing it in back quotes, it renders just the forward slash in italicized form which is hard to spot. Using Chrome DevTools, you can see the HTML doing the same via the em
tag:
I suppose the fix is to use back quotes in the XML doc comments so we get proper rendering when markdown is used, but I am not sure what ramifications the back quotes will have in other contexts (e.g. when rendering in the IDE help tooltips).
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Yes, that is probably a better choice than the backtick.
@gewarren can we use
<c>*/*</c>
instead? Will this work? Asking, because that’s something we already use in some places.