Skip to main content

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.

build

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 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for markdown-markup-emoji, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size markdown_markup_emoji-0.2.2-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size markdown_markup_emoji-0.2.2.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page