Skip to content

Commit 29da6bc

Browse files
committed
Remove ancient escape handling
Feature removes in 2015: <https://github.com/remarkjs/remark/releases/tag/3.0.0>.
1 parent 2c6a29c commit 29da6bc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,7 @@ function one(config, node) {
128128
return patch(config, [config.parser.tokenizeWhiteSpace('\n')], start)
129129
}
130130

131-
// To do: next major — remove `escape`.
132-
if (
133-
node.type === 'text' ||
134-
// @ts-ignore legacy.
135-
node.type === 'escape'
136-
) {
131+
if (node.type === 'text') {
137132
return patch(config, config.parser.tokenize(node.value), start)
138133
}
139134
}

0 commit comments

Comments
 (0)