Snippets + SuperFences Tabs
See original GitHub issueDescription
Unable to get Snippets to include a file when making a multiple tabbed (“Grouping code blocks”) code block.
Expected behavior
Actual behavior
* note that without the fencing it includes the file correctly
Steps to reproduce the bug
```C tab="C"
--8<--
example.c
--8<--
```
Package versions
squidfunk/mkdocs-material:latest pulled today.
Project configuration
...
# Extensions
markdown_extensions:
- admonition
- codehilite:
guess_lang: false
- toc:
permalink: true
- pymdownx.arithmatex
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_generator: !!python/name:pymdownx.emoji.to_svg
- pymdownx.inlinehilite
- pymdownx.magiclink
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.snippets:
check_paths: true
- pymdownx.superfences
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
SuperFences - PyMdown Extensions Documentation
Experimental feature that preserves tabs within a code block instead of converting them to spaces which is Python Markdown's default behavior.
Read more >How to Create Tabbed Code Blocks in Mkdocs or Sphinx?
Is there a way to create tabbed code blocks ...
Read more >Markdown Content Tabs - 3os.org
When [SuperFences] is enabled, content tabs can contain arbitrary nested content, including further content tabs, and can be nested in other ...
Read more >mkdocs.yml - kubernetes-sigs/external-dns - Sourcegraph
navigation.tabs.sticky. extra: version: provider: mike ... pymdownx.snippets ... format: !!python/name:pymdownx.superfences.fence_code_format.
Read more >user_config/mkdocs.local.yml · develop · PAGoDA / Tools ...
... site language: en # Optional features like tabs and instant loading ... pymdownx.snippets: - pymdownx.striphtml: - pymdownx.superfences: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

There was a zero-width whitespace in the docs to keep snippets from expanding for demonstration purposes, see #2206. It’s very likely that you copy & pasted the separator from the docs, so make sure that there is no zero-width whitespace in there. It’s probably easiest to copy the separator from here, as the zero-width whitespace has now been removed.
Thanks @squidfunk . It worked.