@cccsaurora/howler-ui 2.15.0-dev.343 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -46,15 +46,7 @@ const HandlebarsMarkdown = ({ md, object = {}, disableLinks = false }) => {
|
|
|
46
46
|
setMdComponents(_components => ({ ..._components, [id]: result }));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
We add two newlines because:
|
|
51
|
-
|
|
52
|
-
## Hello, World
|
|
53
|
-
`123123123`
|
|
54
|
-
|
|
55
|
-
does not parse as a code object.
|
|
56
|
-
*/
|
|
57
|
-
return new Handlebars.SafeString(`\n\n\`${id}\``);
|
|
49
|
+
return new Handlebars.SafeString(`\`${id}\``);
|
|
58
50
|
}
|
|
59
51
|
return helper.callback(...args);
|
|
60
52
|
});
|
|
@@ -69,7 +61,7 @@ const HandlebarsMarkdown = ({ md, object = {}, disableLinks = false }) => {
|
|
|
69
61
|
catch (err) {
|
|
70
62
|
if (err.message?.startsWith('Missing helper')) {
|
|
71
63
|
const missingHelper = err.message.replace(/.+"(.+)"/, '$1');
|
|
72
|
-
handlebars.registerHelper(missingHelper, () => new Handlebars.SafeString(
|
|
64
|
+
handlebars.registerHelper(missingHelper, () => new Handlebars.SafeString(`<span style="color: red; font-weight: bold; font-family: monospace;">Missing helper ${missingHelper}</span>`));
|
|
73
65
|
setRendered(await compiled(object));
|
|
74
66
|
return;
|
|
75
67
|
}
|