Closed Lukavyi closed 6 years ago
const inCodeBlock = !!document.getClosest(node.key, n => { n.type === "code"; });
The arrow function doesn't return anything, but it should
https://github.com/tommoor/slate-md-serializer/blob/master/src/renderer.js#L201
Hmm, it does look like you're right although this hasn't caused a problem in practice. Clearly the test needs some work here too.
Seems that it would always equal to false, thus making the inCodeBlock redundant
inCodeBlock
The arrow function doesn't return anything, but it should
https://github.com/tommoor/slate-md-serializer/blob/master/src/renderer.js#L201