undocs 0.2.2 → 0.2.3

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.
@@ -13,7 +13,7 @@ export default defineNitroPlugin((nitroApp) => {
13
13
  // Only use the first blockquote as the description
14
14
  const firstChild = file.body.children?.[0]
15
15
  const firstChildContent = firstChild?.children?.[0]?.children?.[0]?.value
16
- if (firstChild.tag === 'blockquote' && firstChildContent) {
16
+ if (firstChild?.tag === 'blockquote' && firstChildContent) {
17
17
  file.description = firstChildContent
18
18
  file.body.children.shift()
19
19
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undocs",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "repository": "unjs/undocs",
5
5
  "license": "MIT",
6
6
  "type": "module",