1

i'm documenting my project with 'compodoc' and i like this tool but i get a error visual when i try insert a quote.

i have this comment

/**
   * crea un arreglo de tamaño n
   *
   * @example
   * *ngFor="let item of 2 | numberToArray"
   *
   * @param length tamaño del nuevo arreglo
   *
   * @returns un arreglo de tamaño n
   */

i expect this

example:
1| *ngFor="let item of 2 | numberToArray"

but the actual output is

example:
1| *ngFor="let item of 2 | numberToArray"

2 Answers2

0

I'm a little confused since your expected output is the same as the actual output in your example. Try escaping the quotation marks \"Foo bar\"

user1222324562
  • 965
  • 2
  • 9
  • 24
0

You can remove the @example jsdoc tag and enclose the code in ```ts. See more about workaround https://github.com/compodoc/compodoc/issues/304

From

/**
 * crea un arreglo de tamaño n
 *
 * @example
 * *ngFor="let item of 2 | numberToArray"
 */

To

/**
 * crea un arreglo de tamaño n
 *
 * ```ts
 * *ngFor="let item of 2 | numberToArray"
 * ```
 */