Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CSS to correctly display <pre><code>...</code></pre>? #102

Closed
Pomax opened this issue Oct 20, 2021 · 0 comments · Fixed by #103
Closed

Fix CSS to correctly display <pre><code>...</code></pre>? #102

Pomax opened this issue Oct 20, 2021 · 0 comments · Fixed by #103

Comments

@Pomax
Copy link
Contributor

Pomax commented Oct 20, 2021

JSdoc with traditional HTML code formatting (<pre><code>...</code></pre>) seems to render incorrectly, coloring the code's text as if it's inline text rather than ensuring a solid background for the entire <pre> block .

This can be seen using, for example, the following jsdoc comment:

  /**
   * This symbol can be used to create models with missing
   * "required" fields. Note that this value is inherited,
   * and so can be referenced from your own model's name
   * rather than using Model.ALLOW_INCOMPLETE.
   *
   * E.g.
   *
   * <pre><code>
   *   class Something extends Model {
   *     // ...
   *   }
   *
   *   Something.create(undefined, Something.ALLOW_INCOMPLETE);
   * </code></pre>
   */
  static ALLOW_INCOMPLETE = Symbol();

This yields:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant