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

bug: comma in starting code snippet directive breaks syntax highlighting #583

Open
iuioiua opened this issue May 22, 2024 · 0 comments
Open

Comments

@iuioiua
Copy link
Contributor

iuioiua commented May 22, 2024

The following docs:

/**
 * ```ts no-eval
 * import { concat } from "@std/bytes/concat";
 * import { assertEquals } from "@std/assert/assert-equals"
 *
 * const a = new Uint8Array([0, 1, 2]);
 * const b = new Uint8Array([3, 4, 5]);
 *
 * assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
 * ```
 */

Correctly renders, when using deno doc --html:

Users_asher_GitHub_deno_std_docs~_concat html

The following docs:

/**
 * ```ts, no-eval
 * import { concat } from "@std/bytes/concat";
 * import { assertEquals } from "@std/assert/assert-equals"
 *
 * const a = new Uint8Array([0, 1, 2]);
 * const b = new Uint8Array([3, 4, 5]);
 *
 * assertEquals(concat([a, b]), new Uint8Array([0, 1, 2, 3, 4, 5]));
 * ```
 */

Incorrectly renders, when using deno doc --html:
Users_asher_GitHub_deno_std_docs~_concat html (1)

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

No branches or pull requests

1 participant