toast messages
This commit is contained in:
@@ -30,7 +30,6 @@ export function OnDemandResolver({
|
||||
const stackIdxs = Array.from(new Set(template.match(/\$\d/g)));
|
||||
for (const idx of stackIdxs) {
|
||||
let thing = res.current.getFromStack(idx);
|
||||
debugger;
|
||||
if (Array.isArray(thing)) thing = thing.at(0);
|
||||
if (typeof thing === "function") thing = thing();
|
||||
content = content.replaceAll(idx, thing as string);
|
||||
|
@@ -239,7 +239,6 @@ export const buildOnlyDefaultElements = () => {
|
||||
"ordered-list",
|
||||
/(?<=\n\n|^)\s*\d+\.\s([\s\S]*?)(?=\n\n|$)/g,
|
||||
(s, rx) => {
|
||||
// debugger;
|
||||
return {
|
||||
content:
|
||||
s.match(new RegExp(rx, ""))?.at(0) || "Unable to parse ordered list",
|
||||
@@ -254,7 +253,6 @@ export const buildOnlyDefaultElements = () => {
|
||||
},
|
||||
(token) => {
|
||||
const { children } = token;
|
||||
debugger;
|
||||
return (
|
||||
<>
|
||||
<ol
|
||||
|
Reference in New Issue
Block a user