Skip to content

Link not working within and after <ul> or <ol> tags #2103

Closed
@chrisgdt

Description

@chrisgdt

Search terms

Indent by itemize or enumerate, <ol> <ul> tags, link parsing into markdown and not HTML ref.

Expected Behavior

Having {@link ...} tags working everywhere in the doc.

Actual Behavior

Inside <ol> tag, no link is working, not even after </ol>. Everything is parsed into markdown so it's not working in the HTML code.

Steps to reproduce the bug

Simply run typedoc --out docs/ --tsconfig ./tsconfig.json ./test.ts with :

tsconfig.json
{
  "include": [
    "test.ts"
  ]
}
test.ts
/**
 * Write my documentation with some enumerate.
 * Before, the link to {@link myFunction} is working and {@link https://www.google.com | url} too.
 * <ol>
 *   <li>But within `ol` or `ul` tags, it's not {@link myFunction | working}.</li>
 *   <li>Not even url like {@link https://www.google.com}.</li>
 * </ol>
 * After, it's not working anymore : {@link myFunction} ; {@link https://www.google.com | url}.
 */
function myFunction () {
  console.log("hello world!");
}

The result is:
ss+(2022-11-14+at+02 25 10)

Notice that there is no warning Failed to resolve link [...].

Environment

  • Typedoc version: 0.23.21
  • TypeScript version: 4.8.4
  • Node.js version: 16.17.0 (not used)
  • OS: Windows version 10.0.19043 Build 19043

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasier issue for first time contributorshelp wantedContributions are especially encouraged

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions