import Partial1 from './_partial1.md';
import SomeComponent from './SomeComponent';
Some text
import Partial2 from './_partial2.md';
Foo
Some text
Unused partials (that are only imported but not rendered) shouldn't alter the TOC
import UnusedPartialImport from './_partial3.md';
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';
It's fine if we use partials at the end
And we can use the partial multiple times!