some deletions
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / remark-stringify / lib / util / enter-link-reference.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/remark-stringify/lib/util/enter-link-reference.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/remark-stringify/lib/util/enter-link-reference.js
deleted file mode 100644 (file)
index a77053b..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-
-var returner = require('./returner');
-
-module.exports = enter;
-
-/* Shortcut and collapsed link references need no escaping
- * and encoding during the processing of child nodes (it
- * must be implied from identifier).
- *
- * This toggler turns encoding and escaping off for shortcut
- * and collapsed references.
- *
- * Implies `enterLink`.
- */
-function enter(compiler, node) {
-  var encode = compiler.encode;
-  var escape = compiler.escape;
-  var exit = compiler.enterLink();
-
-  if (
-    node.referenceType !== 'shortcut' &&
-    node.referenceType !== 'collapsed'
-  ) {
-    return exit;
-  }
-
-  compiler.escape = returner;
-  compiler.encode = returner;
-
-  return function () {
-    compiler.encode = encode;
-    compiler.escape = escape;
-    exit();
-  };
-}