Function HeadingRenderer

  • The default implementation for rendering the Tokens.Heading that will render one of the following based on the depth:

    • <h1 id={sluggedId}>{children}</h1>
    • <h2 id={sluggedId}>{children}</h2>
    • <h3 id={sluggedId}>{children}</h3>
    • <h4 id={sluggedId}>{children}</h4>
    • <h5 id={sluggedId}>{children}</h5>
    • <h6 id={sluggedId}>{children}</h6>

    Parameters

    Returns ReactElement

Generated using TypeDoc