Add support for any language: by dmitry-timofeev · Pull Request #5 · rnorth/mkdocs-codeinclude-plugin
| self.assertEquals('rust', get_lang_class('HelloWorld.rs')) | ||
| self.assertEquals('docker', get_lang_class('Dockerfile')) | ||
| self.assertEquals('xml', get_lang_class('HelloWorld.xml')) | ||
| self.assertEquals('toml', get_lang_class('HelloWorld.toml')) |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, the test seems to fail on this line - I wonder if there's varying support for the toml extension in different versions of pygments.
> self.assertEquals('toml', get_lang_class('HelloWorld.toml'))
E AssertionError: 'toml' != 'none'
E - toml
E + none
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems I used Pygments~=2.5 or newer, which version fails for you? Would it make sense to require a certain version of it, or just remove this test?