Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mkdocs include with --8<-- not interpreted

I'm using mkdocs to create html web pages and snippets extension to fragment my master documents into small pieces. I have an incomprehensible bug:

In the file file1.md I made:

--8<--
includes/some_rep/fragment1.md
includes/some_rep/fragment2.md
...
--8<--

And all is ok... but in another file2.md i made:

--8<--
includes/other_rep/oher_fragment1.md
--8<--

And got a non interpreted output :( Does some one experimented similar bug?

like image 386
Sebastien Hoarau Avatar asked Apr 02 '26 20:04

Sebastien Hoarau


1 Answers

Add pymdownx.snippets in the markdown_extensions

like image 169
Joskfg Avatar answered Apr 04 '26 12:04

Joskfg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!