Skip to content

PyMdown Extensions

Blocks

usege

markdown_extensions:  
 - pymdownx.blocks.__Extension__:
Extension Description
admonition The admonition block allows for the creation of admonitions.
define Allows for the creation of definition lists.
details The details block allows for the creation of collapsible details/summary constructs.
tab Aims to replace the Tabbed extension and allows for the creation of tab containers.
html HTML is a block that allows for the arbitrary creation of HTML elements of various types.

Syntax

/// name-of-block  
    content  
///  

HTML for content and structure

JavaScript for interactivity

CSS for text running out of boxes

Internet Explorer ... huh?

Note

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
markdown_extensions:  
  - toc:  
      baselevel: 2  
  - markdown.extensions.toc:  
      slugify: !!python/object/apply:pymdownx.slugs.slugify {kwds: {case: lower}}  
      permalink: "\ue157"  
  - pymdownx.emoji:  
      emoji_generator: !!python/name:pymdownx.emoji.to_png  
  - pymdownx.tabbed:  
  - pymdownx.tasklist:  
  - pymdownx.smartsymbols:  
  - pymdownx.keys:  
  - pymdownx.caret:  
  - pymdownx.details:  
  - pymdownx.blocks.admonition:  
  #- pymdownx.blocks.define:  
  - pymdownx.blocks.details:  
  - pymdownx.blocks.tab: