Skip to content

Commit

Permalink
Merge pull request #4153 from 18F/cs-issue-8-to-10-high
Browse files Browse the repository at this point in the history
Update base.js
  • Loading branch information
amandacostello authored Dec 20, 2024
2 parents 75fe73d + 707469d commit d594f42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/markdown/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ markdownLibrary.renderer.rules.html_inline = (tokens, idx, options, env, self) =
'aria-hidden="true" role="img">' +
'<use xlink:href="#svg-lock_outline"></use>' +
'</svg>'
content = content.replace('>', `> ${prefixIcon}`);
content = content.replaceAll('>', `> ${prefixIcon}`);
tokens[idx].content = content;
}

Expand All @@ -141,7 +141,7 @@ markdownLibrary.renderer.rules.html_inline = (tokens, idx, options, env, self) =
}
}
else {
content = content.replace('>', ' class="usa-link usa-link--external">');
content = content.replaceAll('>', ' class="usa-link usa-link--external">');
tokens[idx].content = content;
}
if (content.includes('rel=')) {
Expand All @@ -151,7 +151,7 @@ markdownLibrary.renderer.rules.html_inline = (tokens, idx, options, env, self) =
}
}
else {
content = content.replace('>', ' rel="noreferrer">');
content = content.replaceAll('>', ' rel="noreferrer">');
tokens[idx].content = content;
}
}
Expand Down

0 comments on commit d594f42

Please sign in to comment.