question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snippets + SuperFences Tabs

See original GitHub issue

Description

Unable to get Snippets to include a file when making a multiple tabbed (“Grouping code blocks”) code block.

Expected behavior

image

Actual behavior

image

* 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
squidfunkcommented, Jan 29, 2021

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.

0reactions
imflash217commented, Jan 29, 2021

Thanks @squidfunk . It worked.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found