Skip to content

Latest commit

 

History

History
49 lines (25 loc) · 757 Bytes

File metadata and controls

49 lines (25 loc) · 757 Bytes

import Partial1 from './_partial1.md';

import SomeComponent from './SomeComponent';

Index

Some text

import Partial2 from './_partial2.md';

Index section 1

Foo

Some text

Index section 2

Unused partials

Unused partials (that are only imported but not rendered) shouldn't alter the TOC

import UnusedPartialImport from './_partial3.md';

NonExisting Partials

Partials that do not exist should alter the TOC

It's not the responsibility of the Remark plugin to check for their existence

import DoesNotExist from './_doesNotExist.md';

Duplicate partials

It's fine if we use partials at the end

And we can use the partial multiple times!