You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the markdown value, should the < and > in React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>> as well as in <a> be escaped? I think they should be escaped, since markdown may contain HTML for markup.
The text was updated successfully, but these errors were encountered:
This is how it renders in ST. I see now that the React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>> ia rendered correctly because it's in a code block. But the <a> tag is not rendered.
I don't work with React so I'm not sure how to even reproduce this but this is probably an equivalent case:
/** * Test <a> rendering. */constxxxx=1
which results in:
Treating it as markdown and escaping html using backticks would help:
/** * Test `<a>` rendering. */constxxxx=1
While this server does some processing of the input provided by typescript (mostly just handling of JSDoc @tags), I'm not convinced that it should go into trying to parse HTML as that's just a slippery slope. I think it's something that should be handled properly when authoring the comments.
Some docstrings contain HTML, but they should be escaped. e.g. hover over a react-router-dom
Link
component and the response isIn the markdown value, should the
<
and>
inReact.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>
as well as in<a>
be escaped? I think they should be escaped, since markdown may contain HTML for markup.The text was updated successfully, but these errors were encountered: