Skip to content

Commit 0b26820

Browse files
committed
docs: update yamlToMarkdown.js
1 parent ccab8f6 commit 0b26820

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/src/utils/yamlToMarkdown.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ async function formatMarkdown(content) {
1616
plugins: [prettierPluginMarkdown, prettierPluginEstree, prettierPluginYaml],
1717
});
1818
} catch (error) {
19-
console.error('Error formatting Markdown:', error);
19+
console.error('Error formatting Markdown:', {
20+
error,
21+
contentPreview: content.substring(0, 100), // First 100 chars for context
22+
contentLength: content.length
23+
});
2024
return content; // Return original content if formatting fails
2125
}
2226
}

0 commit comments

Comments
 (0)