Skip to content

JSX inside of code blocks is rendered in docs #545

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

Closed
lucacasonato opened this issue Apr 15, 2024 · 1 comment
Closed

JSX inside of code blocks is rendered in docs #545

lucacasonato opened this issue Apr 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lucacasonato
Copy link
Member

/**
 * ```tsx
 * export default definePage<typeof handler>(({ data }) => {
 *   return <h1>{data.message}</h1>;
 * });
 * ```
 */
export function foo() {}

Results in something like this in the docs:

Screenshot 2024-04-15 at 13 26 41

This is with deno doc --html on Deno 1.42.1

@lucacasonato lucacasonato added the bug Something isn't working label Apr 15, 2024
@crowlKats
Copy link
Member

Closing as fixed in #554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants