--- /dev/null
+Wiki formatting between `\[[toc ]]` and an inline fails to render. The problem does not seem to trigger if the inline uses the titlepage template, or if it doesn't match any pages. See example below; also reproducible with a single-file wiki containing the text below, rendered via `ikiwiki --plugin toc`.
+
+[[toc ]]
+
+**not bold**
+
+`not fixed-pitch`
+
+# heading not rendered
+
+[not a link](http://ikiwiki.info)
+
+[[inline pages="news/*" description="Sparse News" show=1 feeds=no]]
+
+**bold**
+
+`fixed-pitch`
+
+# heading rendered
+
+[a link](http://ikiwiki.info)
+