Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/node_modules/remark-stringify/lib/util/label.js')
-rw-r--r--assets/node_modules/remark-stringify/lib/util/label.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/assets/node_modules/remark-stringify/lib/util/label.js b/assets/node_modules/remark-stringify/lib/util/label.js
deleted file mode 100644
index 5718d79..0000000
--- a/assets/node_modules/remark-stringify/lib/util/label.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict'
-
-module.exports = label
-
-var leftSquareBracket = '['
-var rightSquareBracket = ']'
-
-var shortcut = 'shortcut'
-var collapsed = 'collapsed'
-
-// Stringify a reference label.
-// Because link references are easily, mistakingly, created (for example,
-// `[foo]`), reference nodes have an extra property depicting how it looked in
-// the original document, so stringification can cause minimal changes.
-function label(node) {
- var type = node.referenceType
-
- if (type === shortcut) {
- return ''
- }
-
- return (
- leftSquareBracket +
- (type === collapsed ? '' : node.label || node.identifier) +
- rightSquareBracket
- )
-}