Playground
import markdown from markdown.extensions.toc import TocExtension source = ''' # Heading A paragraph of **Markdown** text. ''' html = markdown.markdown(source, extensions=[TocExtension(permalink=True)]) print(html)
Feel free to edit the Python code above. You may use and configure any of the built-in extensions, as well as any of the PyMdown Extensions.
To run the code, click the Run button in the top-right corner or, if the editor is active (cursor is blinking), you may press Ctrl+Enter on your keyboard.
This interactive Python editor is made possible by Pyodide, Ace and Highlight.js.