mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-14 18:40:33 +03:00
Remove unused code
This commit is contained in:
parent
049279657a
commit
e5c4b18ccc
|
@ -45,21 +45,6 @@ function remarkCodeBlocks(userOptions = {}) {
|
||||||
// GitHub URL
|
// GitHub URL
|
||||||
attrs.github = 'true'
|
attrs.github = 'true'
|
||||||
}
|
}
|
||||||
// If it's a bash code block and single line, check for prompts
|
|
||||||
if (lang === 'bash') {
|
|
||||||
const [trueFirstLine, ...trueLines] = node.value.split('\n')
|
|
||||||
for (let prompt of options.prompts) {
|
|
||||||
if (trueFirstLine.startsWith(prompt)) {
|
|
||||||
const content = [
|
|
||||||
trueFirstLine.slice(prompt.length).trim(),
|
|
||||||
...trueLines,
|
|
||||||
]
|
|
||||||
attrs.prompt = prompt
|
|
||||||
node.value = content.join('\n')
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const data = node.data || (node.data = {})
|
const data = node.data || (node.data = {})
|
||||||
const hProps = data.hProperties || (data.hProperties = {})
|
const hProps = data.hProperties || (data.hProperties = {})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user