Skip to content

Latest commit

 

History

History
46 lines (24 loc) · 950 Bytes

File metadata and controls

46 lines (24 loc) · 950 Bytes

import Partial from './_partial.mdx';

Basic TOC partial test

This page tests that MDX-imported content appears correctly in the table-of-contents

See also:


The table of contents should include headings of this partial:


We can import the same partial using a different name and it still works:

import WeirdLocalName from './_partial.mdx';


We can import a partial and not use it, the TOC remains unaffected:

import UnusedPartial from './_partial.mdx';


import FirstLevelPartial from './_first-level-partial.mdx';

It also works for partials importing other partials


And we can even use the same partial twice!

(although it's useless and not particularly recommended because headings will have the same ids)