Python markdown extension for markup Emoji
Project description
markdown_markup_emoji
Python-Markdown extension for markup of Emoji in the markdown document.
Since it is marked up like <span class="emoji">😃</span>
,
Make your Emoji bigger You can display it.
Installation
Install with pip.
$ pip install markdown_markup_emoji
Usage
It is used as an extension of Python-Markdown.
import markdown
md = markdown.Markdown(extensions=["markdown_markup_emoji.markup_emoji"])
md.convert("markdown text")
Or use from Pelican as Markdown extension.
# pelicanconf.py
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown_markup_emoji.markup_emoji': {},
},
'output_format': 'html5',
}
Add your style
Since it is marked up like <span class="emoji">😃</span>
,
Add a style to be displayed with a slightly bigger font.
.emoji { font-size: 150%; }
Notice
Since it does not include Emoji font, the display depends on OS. For example, in Windows 7, pictograms may be displayed in black and white, or may not be displayed. Different Emoji may be displayed between iOS and Android.
Unicode Full Emoji List is here, please reference it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for markdown_markup_emoji-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9479a3d889a52ee3058f94eb8ea1c782ca805c322ced55f451353702376c162 |
|
MD5 | f98aa4c716a5f2db3ed0e6948029c72d |
|
BLAKE2b-256 | e52ac2ffb8c1f28b9f1c7fbf5d300f2edf5173ef9030265db3ec07aa8087a78a |