perf: throw error if raw undefined
This commit is contained in:
parent
228f0a61ca
commit
56bf2308bf
@ -30,10 +30,6 @@ function outputLink(cap, link, raw) {
|
||||
}
|
||||
|
||||
function indentCodeCompensation(raw, text) {
|
||||
if (raw === undefined) {
|
||||
return text;
|
||||
}
|
||||
|
||||
const matchIndentToCode = raw.match(/^(\s+)(?:```)/);
|
||||
|
||||
if (matchIndentToCode === null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user