From a1d1fe712f179db4c40615c201814028cfab9741 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Mon, 27 Nov 2023 09:50:54 +0000 Subject: [PATCH] fix: use example title if it is available (#1418) TypeDoc was updated recently to parse the example title correctly so use if it is available --- src/docs/readme-updater-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/docs/readme-updater-plugin.js b/src/docs/readme-updater-plugin.js index def2bc616..561ea5610 100644 --- a/src/docs/readme-updater-plugin.js +++ b/src/docs/readme-updater-plugin.js @@ -85,7 +85,7 @@ ${ .map(item => { if (item.tag === '@example') { return ` -## Example +## Example${item.name ? ` - ${item.name}` : ''} ${ item.content