Rewrap icon indicating copy to clipboard operation
Rewrap copied to clipboard

JSX support

Open OliverJAsh opened this issue 7 years ago • 3 comments

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>
    );

OliverJAsh avatar Sep 19 '18 17:09 OliverJAsh

Would you take a PR for this? I would be happy to work on it but I would need some guidance to get started.

OliverJAsh avatar Apr 29 '21 10:04 OliverJAsh

Would be very nice to see this supported!

fo-fo avatar Sep 18 '21 07:09 fo-fo

+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.

Noitidart avatar Jun 18 '22 12:06 Noitidart