Rewrap
Rewrap copied to clipboard
JSX support
If I have a comment inside JSX, Rewrap does not appear to work:
const metadata = (
<div>
<h3>Metadata</h3>
{/* foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo */}
<dl>
<dt>File name</dt>
<dd>{file.name}</dd>
<dt>File size</dt>
<dd>{formattedFileSize}</dd>
{dimensionsEl}
</dl>
</div>
);
Would you take a PR for this? I would be happy to work on it but I would need some guidance to get started.
Would be very nice to see this supported!
+1 this is the only missing feature for me. Been using rewrap for at least a year, only stumbled upon this topic when trying to find an extension that supports this. There is no extension that does it.