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.

Source Distribution

markdown_markup_emoji-0.1.3.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

markdown_markup_emoji-0.1.3-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page