We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have an outline with html tags after an img tag. Ex: <img src="#" /><figcaption>Caption</figcaption>
<img src="#" /><figcaption>Caption</figcaption>
The < and > signs around figcaption should remain intact. Only the tags for img should be modified.
<
>
<img src="#" /><figcaption>Caption</figcaption>
The final > sign around /figcaption is converted to > while the end > of img remains intact.
>
<img src="#" /><figcaption>Caption</figcaption/>
The regex on line 996 of concord.js https://github.com/scripting/concord/blob/master/concord.js#L996
Should change from: new RegExp("<"+tag+"((?!>).+)(/)?>","gi")
new RegExp("<"+tag+"((?!>).+)(/)?>","gi")
to:
new RegExp("<"+tag+"((?!>).+?)(/)?>","gi")
(see the ? after .+)
?
.+
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What I did:
I have an outline with html tags after an img tag. Ex:
<img src="#" /><figcaption>Caption</figcaption>
What I expect to happen:
The
<
and>
signs around figcaption should remain intact. Only the tags for img should be modified.<img src="#" /><figcaption>Caption</figcaption>
What happens:
The final
>
sign around /figcaption is converted to>
while the end>
of img remains intact.<img src="#" /><figcaption>Caption</figcaption/>
The fix:
The regex on line 996 of concord.js
https://github.com/scripting/concord/blob/master/concord.js#L996
Should change from:
new RegExp("<"+tag+"((?!>).+)(/)?>","gi")
to:
new RegExp("<"+tag+"((?!>).+?)(/)?>","gi")
(see the
?
after.+
)The text was updated successfully, but these errors were encountered: