mirror of
https://github.com/gchq/CyberChef
synced 2025-03-13 21:36:56 +00: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);
|
||||
};
|
||||
|
||||
// eslint-disable-next-line camelcase
|
||||
md.renderer.rules.link_open = function (tokens, idx, options, env, self) {
|
||||
const token = tokens[idx];
|
||||
if (token.attrIndex('target') >= 0) {
|
||||
if (token.attrIndex("target") >= 0) {
|
||||
// Target attribute already set, do not replace.
|
||||
return;
|
||||
}
|
||||
token.attrPush(['target', '_blank']); // add new attribute
|
||||
token.attrPush(["target", "_blank"]); // add new attribute
|
||||
|
||||
// pass token to default renderer.
|
||||
return defaultRender(tokens, idx, options, env, self);
|
||||
|
|
Loading…
Add table
Reference in a new issue