Skip to content

Bug with backticks on abstract classes #831

@iivvaannxx

Description

@iivvaannxx

What package is the bug related to?

typedoc-plugin-markdown

Describe the issue

When exporting an abstract class the generated Markdown contains "invalid" syntax in the header, as it backticks the entire header and also the abstract keyword. This is only if you want to manually "backtick" your headers, as it's something I need in my docs (see pageTitleTemplates.member in config).

Is there another way to accomplish this without breaking the header backticks?

It leads to:

# ``abstract` className`

TypeDoc configuration

{
    "$schema": "https://typedoc-plugin-markdown.org/schema.json",
    "plugin": ["typedoc-plugin-markdown"],
  
    "cleanOutputDir": true,
    "includeVersion": true,
  
    "excludeExternals": true,
    "expandObjects": true,
    "expandParameters": true,
    "hideBreadcrumbs": true,
    "hidePageHeader": true,
    "useCodeBlocks": true,
    "useTsLinkResolution": true,
    "readme": "none",
  
    "indexFormat": "table",
    "parametersFormat": "table",
    "pageTitleTemplates": {
      "index": "`{projectName}`: `{version}`",
      "module": "`{name}`: {kind}",
      "member": "`{name}`"
    },

    "entryPoints": ["./index.ts"],
    "out": "docs/api-reference",

    "validation": {
      "notExported": false
    }
}

Expected behavior

Should render the following:

# `abstract` `className`

Reproduction

See in Stackblitz

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue raised as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions