We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22ecddb commit 0d41eb3Copy full SHA for 0d41eb3
src/components/guidelines/EntryText.astro
@@ -22,7 +22,12 @@ const howtoPath = parentHowto
22
const baseUrl = "https://w3c.github.io/wcag3/how-to/";
23
24
function processHtml() {
25
- const entryHtml = entry.rendered!.html;
+ if (!entry.rendered) {
26
+ throw new Error(
27
+ `EntryText: No rendered HTML found for ${entry.id}; check for Markdown parse failures earlier in log`
28
+ );
29
+ }
30
+ const entryHtml = entry.rendered.html;
31
if (!howtoSlug) return entryHtml;
32
33
const $ = load(entryHtml, null, false);
0 commit comments