python markdown configuration - skywind3000/markpress GitHub Wiki
There can be a ~/.config/markpress/extensions.py
file can be used to define a extension_configs
dict object which will be passed to python-markdown
.
For example, if you are using emoji you can define the configs by:
import pymdownx.emoji
extension_configs = {
"pymdownx.emoji": {
"emoji_index": pymdownx.emoji.emojione,
"emoji_generator": pymdownx.emoji.to_png,
"alt": "short",
"options": {
"attributes": {
"align": "absmiddle",
"height": "18px",
"width": "18px"
},
}
}
}
And save the content to ~/.config/markpress/extensions.py
. markpress
will load it when you are using markdown
engine.