How to keep tag attributes when replacing a tag surround #458
Closed
mikaoelitiana
started this conversation in
General
Replies: 1 comment
-
Not really possible to "preserve" attributes per se. See #397. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say I have a tag like this :
<span style="some styles...">some content</span>
. If I replace thespan
with ap
using mini.surround, the whole tag with it'sstyle
attribute is replaced and I end up with<p>some content</p>
.Is there a way to keep the tag attributes and have something like
<p style="some styles...">some content</p>
at the end?Beta Was this translation helpful? Give feedback.
All reactions