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.2.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

markdown_markup_emoji-0.2.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file markdown_markup_emoji-0.2.2.tar.gz.

File metadata

  • Download URL: markdown_markup_emoji-0.2.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

File hashes

Hashes for markdown_markup_emoji-0.2.2.tar.gz
Algorithm Hash digest
SHA256 210b053f4e089ea4b8e524c27c3695cd9aabde7cd8dca49deb5891e1bd0666de
MD5 471ce39a1e90ff906faa4d99515bc254
BLAKE2b-256 5facf8194f1783f35ef207947d1e416c1c4117263e16ed8c1054342bf518901e

See more details on using hashes here.

File details

Details for the file markdown_markup_emoji-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: markdown_markup_emoji-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.3

File hashes

Hashes for markdown_markup_emoji-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 004ffafa9996a3b78f4c99cbe222187df95610810b99cca85b07c6b6e7e6d81b
MD5 38a201a44e887787c3cccd320d105cc8
BLAKE2b-256 bf7a237ab6fe10606361040cde7a997df8daf6d5f455ca79a6247e83553667cf

See more details on using hashes here.

Supported by

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