diff --git a/packages/typedoc-plugin-markdown/src/resources/helpers/reflection-path.ts b/packages/typedoc-plugin-markdown/src/resources/helpers/reflection-path.ts index 6ad0efc6e..ee406f09a 100644 --- a/packages/typedoc-plugin-markdown/src/resources/helpers/reflection-path.ts +++ b/packages/typedoc-plugin-markdown/src/resources/helpers/reflection-path.ts @@ -1,6 +1,7 @@ import * as Handlebars from 'handlebars'; import { ContainerReflection, ReflectionKind } from 'typedoc'; import { PageEvent } from 'typedoc/dist/lib/output/events'; +import { escapeChars } from '../../utils'; export default function () { Handlebars.registerHelper( @@ -14,14 +15,14 @@ export default function () { if (this.model.parent.parent.parent) { title.push( `[${ - this.model.parent.parent.name + escapeChars(this.model.parent.parent.name) }](${Handlebars.helpers.relativeURL( this.model?.parent?.parent.url, )})`, ); } title.push( - `[${this.model.parent.name}](${Handlebars.helpers.relativeURL( + `[${escapeChars(this.model.parent.name)}](${Handlebars.helpers.relativeURL( this.model.parent.url, )})`, ); diff --git a/packages/typedoc-plugin-markdown/src/resources/partials/main.hbs b/packages/typedoc-plugin-markdown/src/resources/partials/main.hbs index 01d889e1f..f9fea02c8 100644 --- a/packages/typedoc-plugin-markdown/src/resources/partials/main.hbs +++ b/packages/typedoc-plugin-markdown/src/resources/partials/main.hbs @@ -1,3 +1,3 @@ -{{ toc }} +{{{ toc }}} {{> members}}