mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 07:16:17 -04:00
Fix linting errors
This commit is contained in:
parent
e5a903807f
commit
6402bb6003
1 changed files with 3 additions and 2 deletions
|
@ -82,13 +82,14 @@ class RenderMarkdown extends Operation {
|
||||||
return self.renderToken(tokens, idx, options);
|
return self.renderToken(tokens, idx, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// eslint-disable-next-line camelcase
|
||||||
md.renderer.rules.link_open = function (tokens, idx, options, env, self) {
|
md.renderer.rules.link_open = function (tokens, idx, options, env, self) {
|
||||||
const token = tokens[idx];
|
const token = tokens[idx];
|
||||||
if (token.attrIndex('target') >= 0) {
|
if (token.attrIndex("target") >= 0) {
|
||||||
// Target attribute already set, do not replace.
|
// Target attribute already set, do not replace.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
token.attrPush(['target', '_blank']); // add new attribute
|
token.attrPush(["target", "_blank"]); // add new attribute
|
||||||
|
|
||||||
// pass token to default renderer.
|
// pass token to default renderer.
|
||||||
return defaultRender(tokens, idx, options, env, self);
|
return defaultRender(tokens, idx, options, env, self);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue