Debian Codegraph @

docs/src/markdown/installation.md

raw
1 ---
2 icon: lucide/package-open
3 ---
4 # Installation
5
6 ## Requirements
7
8 In order for PyMdown Extensions to work, there are a couple of prerequisites.
9
10 Name | Required | Details
11 ---------------------------------- | -------- | -------
12 [Python Markdown][python-markdown] | Yes | Python Markdown must be installed as it is the Markdown parser that is being used.
13 [Pygments (optional)][pygments] | No | If Pygments Syntax highlighting is desired, Pygments must be installed. This can be omitted, and code blocks will be formatted for use with JavaScript code highlighters.
14
15 ## Installation
16
17 Installation is easy with pip:
18
19 ```console
20 $ pip install pymdown-extensions
21 ```
22
23 If you want to manually install it, run:
24
25 ```console
26 $ python setup.py build
27 $ python setup.py install
28 ```
29
30 After installing, you should be able to access the extensions in Python Markdown under the namespace
31 `pymdownx.<extension>`.
32
33 If you would like to modify the code, you can install it via:
34
35 ```console
36 $ pip install --editable .
37 ```
38
39 This method will allow you to instantly see your changes without reinstalling. If you want to do this in a virtual
40 environment, you can.