forked from tanner/qotnews
chore: Add debug log to isCodeBlock function
This commit is contained in:
@@ -58,6 +58,7 @@ function Article({ cache }) {
|
||||
};
|
||||
|
||||
const isCodeBlock = (v) => {
|
||||
console.log(v);
|
||||
return v.localName === 'pre' || v.localName === 'code' || (v.firstElementChild && v.firstElementChild.localName === 'code');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user