diff --git a/docs-gen/src/resources/helpers/meta.ts b/docs-gen/src/resources/helpers/meta.ts index 41d7e7e0c7365..315affc8bf335 100644 --- a/docs-gen/src/resources/helpers/meta.ts +++ b/docs-gen/src/resources/helpers/meta.ts @@ -18,7 +18,9 @@ export function meta(this: ProjectReflection) { (comment?.tags || []).forEach((tag: CommentTag) => { if (tag.tagName !== 'description') { - md.push(`${tag.tagName}: ${tag.text}`.replace('\n', '')); + const escape = tag.tagName !== 'menuorder'; + const text = escape ? `'${tag.text}'` : tag.text; + md.push(`${tag.tagName === 'menuorder' ? 'menuOrder' : tag.tagName}: ${text}`.replace('\n', '')); } }); md.push('---'); diff --git a/docs-gen/src/resources/partials/main.hbs b/docs-gen/src/resources/partials/main.hbs index 666de969fbe34..165bc8731494a 100644 --- a/docs-gen/src/resources/partials/main.hbs +++ b/docs-gen/src/resources/partials/main.hbs @@ -1,3 +1,3 @@ -{{meta}} +{{{meta}}} {{> members}} diff --git a/docs-gen/src/resources/partials/member.hbs b/docs-gen/src/resources/partials/member.hbs index 21992e2aab33d..aa03b3381855b 100644 --- a/docs-gen/src/resources/partials/member.hbs +++ b/docs-gen/src/resources/partials/member.hbs @@ -7,7 +7,7 @@ {{else}} -{{heading 3}}{{{ memberTitle }}} +{{heading 3}} {{{ memberTitle }}} {{/ifParentIsModule}}