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/visitors/blockquote.js')
-rw-r--r--assets/node_modules/remark-stringify/lib/visitors/blockquote.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/assets/node_modules/remark-stringify/lib/visitors/blockquote.js b/assets/node_modules/remark-stringify/lib/visitors/blockquote.js
new file mode 100644
index 0000000..6b5187a
--- /dev/null
+++ b/assets/node_modules/remark-stringify/lib/visitors/blockquote.js
@@ -0,0 +1,22 @@
+'use strict'
+
+module.exports = blockquote
+
+var lineFeed = '\n'
+var space = ' '
+var greaterThan = '>'
+
+function blockquote(node) {
+ var values = this.block(node).split(lineFeed)
+ var result = []
+ var length = values.length
+ var index = -1
+ var value
+
+ while (++index < length) {
+ value = values[index]
+ result[index] = (value ? space : '') + value
+ }
+
+ return greaterThan + result.join(lineFeed + greaterThan)
+}