mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Handle KaTeX warnings (#13760)
Co-authored-by: Joe Mooring <joe.mooring@veriphor.com> Fixes #13735
This commit is contained in:
committed by
GitHub
parent
75259636c8
commit
6334948515
@@ -4,6 +4,15 @@ export function readInput(handle) {
|
||||
let currentLine = [];
|
||||
const buffer = new Uint8Array(buffSize);
|
||||
|
||||
// These are not implemented by QuickJS.
|
||||
console.warn = (value) => {
|
||||
console.log(value);
|
||||
};
|
||||
|
||||
console.error = (value) => {
|
||||
throw new Error(value);
|
||||
};
|
||||
|
||||
// Read all the available bytes
|
||||
while (true) {
|
||||
// Stdin file descriptor
|
||||
|
Reference in New Issue
Block a user