Open
Description
Opened a sagews file as a "normal user", project wasn't running, and when opening the "home page" of the project, I saw this stack trace.
The part in the code is here, pointy brackets indicate the location.
function u(e) {
var t = !0
, n = !1
, r = void 0;
try {
for (var i, o = e[Symbol.iterator](); !(t = (i = o.next()).done); t = !0) {
var a = i.value;
a.content && a.content.includes(s) && (a.content = a.content.replace(c, ""),
null != a.children && u(a.children))
}
} catch (e) {
n = !0,
r = e
} finally {
try {
t || null == o.return || o.return()
} finally {
if (n)
throw r
}
}
}
function d(e, t) {
var n = void 0;
if (e = function(e) {
return e.replace(/^(```+)\s+$/gm, "$1") <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
}(e),
!t) {
var i = (0,
r.parseHeader)(e);
e = i.body,
n = i.header
}
var o = e.split("\n");
e = function(e) {
return e.replace(/(?:\S)\ $/gm, (function(e) {
return e[0] + l
}
))
}(e);
var a = {}
, s = r.markdown_it.parse(e, a);
return u(s),
{
tokens: s,
meta: n,
lines: o,
references: a.references
}
}