Skip to content

expected corresponding closing tag but is in a comment? #2428

Discussion options

You must be logged in to vote

Welcome @severinlandolt! 👋

Sorry you ran into a spot of trouble.
The issue is with the exiting the code block when you mean to nest them.
A trick which can help, markdown/mdx needs at least three backticks to start a code block, but can have more, more ticks can nest fewer without exiting.

For example

````jsx 
'use client';
import { Button, Divider, TextInput } from '@tremor/react';

export default function Example() {
  return (
    <>
      {/*
        Modify your layout / template file as follows to center login form across the screen

        ```
        <html class="h-full">
        <body class="h-full">
        ```
      */}

      <div className="flex min-h-full flex-1 flex-col jus…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@severinlandolt
Comment options

Answer selected by severinlandolt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants