首页 > 解决方案 > 我无法在 compodoc 的示例部分插入引号

问题描述

我正在用“compodoc”记录我的项目,我喜欢这个工具,但是当我尝试插入报价时,我得到一个错误的视觉效果。

我有这个评论

/**
   * 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
   */

我期待这个

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

但实际输出是

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

标签: angularcompodoc

解决方案


我有点困惑,因为您的预期输出与示例中的实际输出相同。尝试转义引号\"Foo bar\"


推荐阅读