how to add callout title to toc #653
-
Hello! I have a callout and i am looking to add the title as part of the table of content
it seems that i need to add ## like ## What is Next? (not too sure why thats the case, a link to the docs on this would be appreciated, having skill issues in finding it) in order to make it appear in the table of content. h2/other header tags dont work however im having trouble figuring out how to do so. Would appreciate your kind help! my markdown file: https://github.com/spiritoftime/psle-math/blob/main/open-math-prep/content/questions/constantTotal/question1.mdx |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The title field of callout isn't a heading searchable by a Remark Plugin, you have to explicitly specify a heading in the MDX/Markdown file, as the children of JSX elements or in the document body. |
Beta Was this translation helpful? Give feedback.
The title field of callout isn't a heading searchable by a Remark Plugin, you have to explicitly specify a heading in the MDX/Markdown file, as the children of JSX elements or in the document body.