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-parse/lib/parse.js')
-rw-r--r--assets/node_modules/remark-parse/lib/parse.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/assets/node_modules/remark-parse/lib/parse.js b/assets/node_modules/remark-parse/lib/parse.js
deleted file mode 100644
index 59aac69..0000000
--- a/assets/node_modules/remark-parse/lib/parse.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict'
-
-var xtend = require('xtend')
-var removePosition = require('unist-util-remove-position')
-
-module.exports = parse
-
-var lineFeed = '\n'
-var lineBreaksExpression = /\r\n|\r/g
-
-// Parse the bound file.
-function parse() {
- var self = this
- var value = String(self.file)
- var start = {line: 1, column: 1, offset: 0}
- var content = xtend(start)
- var node
-
- // Clean non-unix newlines: `\r\n` and `\r` are all changed to `\n`.
- // This should not affect positional information.
- value = value.replace(lineBreaksExpression, lineFeed)
-
- // BOM.
- if (value.charCodeAt(0) === 0xfeff) {
- value = value.slice(1)
-
- content.column++
- content.offset++
- }
-
- node = {
- type: 'root',
- children: self.tokenizeBlock(value, content),
- position: {start: start, end: self.eof || xtend(start)}
- }
-
- if (!self.options.position) {
- removePosition(node, true)
- }
-
- return node
-}