Skip to content

Link text doesn't become a link when using {@link X | Y} #1302

@StoneT2000

Description

@StoneT2000

Search terms

link, link text

Expected Behavior

Something such as {@link MyClass | some other text} should show up as a link to MyClass but the text is "some other text"

Actual Behavior

Instead, the documentation just shows "{@link MyClass | some other text}" literally, not parsed.

Steps to reproduce the bug

The repo I'm working on https://github.com/stonet2000/dimensions

Just adding {@link MyClass | some other text} over a class and running the following command:

typedoc --theme ./theme/dimensions/ --mode modules --exclude ./src/Station/ --out docs ./src && touch ./docs/.nojekyll

My typedoc.json:

{
  "inputFiles": ["./src"],
  "mode": "modules",
  "out": "docs",
  "theme": "./theme/dimensions",
  "tsconfig": "./tsconfig.json",
  "exclude": ["./src/Station/**/*"],
  "target": "es5"
}

(I realize that I don't need all of those command line args)
My tsconfig.json

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "outDir": "lib/",
    "sourceMap": true,
    "declaration": true,
    "allowJs": true,
    "esModuleInterop": true,
    "isolatedModules": true
  },
  "include": [
    "src/**/*"
  ],
  "exclude": [
    "node_modules",
    "docs",
    "lib",
    "examples",
    "templates",
    "src/Station/web/**/*",
    "src/Station/local/**/*"
  ]
}

Environment

  • Typedoc version: typedoc@0.17.6
  • TypeScript version: 3.8.3
  • Node.js version: 12.16.1
  • OS: MacOS 10.13.6, High Sierra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions