Skip to content

Extracting unformatted fences just as SuperFences would #2214

Answered by facelessuser
StevenMaude asked this question in Q&A
Discussion options

You must be logged in to vote

You can access the content with custom fences which we document: https://facelessuser.github.io/pymdown-extensions/extensions/superfences/?h=custom+fe#custom-fences.

You can do whatever you want with them. We use them to do some things like code blocks that we execute the content of: https://facelessuser.github.io/coloraide/

We also have an example where we take the content, and parse it in a Markdown sandbox: https://github.com/facelessuser/pymdown-extensions/blob/main/tools/pymdownx_md_render.py

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@StevenMaude
Comment options

@facelessuser
Comment options

@StevenMaude
Comment options

Answer selected by StevenMaude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants