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.

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


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.1.tar.gz (3.2 kB view hashes)

Uploaded Source

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