{"id":17226375,"url":"https://github.com/kernc/mdx_unimoji","last_synced_at":"2025-04-14T01:10:51.967Z","repository":{"id":25250104,"uuid":"28675002","full_name":"kernc/mdx_unimoji","owner":"kernc","description":"Python-Markdown extension that replaces common smileys with their Unicode emoji emoticons. ","archived":false,"fork":false,"pushed_at":"2023-06-22T16:37:02.000Z","size":15,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T15:12:19.248Z","etag":null,"topics":["emoji","extension","markdown","python-markdown"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kernc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-31T20:55:58.000Z","updated_at":"2023-07-07T12:12:53.000Z","dependencies_parsed_at":"2022-07-24T05:00:05.865Z","dependency_job_id":null,"html_url":"https://github.com/kernc/mdx_unimoji","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Fmdx_unimoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Fmdx_unimoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Fmdx_unimoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Fmdx_unimoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernc","download_url":"https://codeload.github.com/kernc/mdx_unimoji/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804825,"owners_count":21164135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emoji","extension","markdown","python-markdown"],"created_at":"2024-10-15T04:16:03.861Z","updated_at":"2025-04-14T01:10:51.932Z","avatar_url":"https://github.com/kernc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Unicode Emojis for Python-Markdown\n==================================\n\nConverts defined emoticon symbols to Unicode emojis, supported on a\nvariety of devices [1].\n\n[1]: http://apps.timwhitlock.info/emoji/tables/unicode#block-1-emoticons\n\nUsage:\n\n```python\n\u003e\u003e\u003e from __future__ import print_function\n\u003e\u003e\u003e from markdown import markdown\n\u003e\u003e\u003e text = 'I \u003c3 you! :P'\n\u003e\u003e\u003e print(markdown(text, ['mdx_unimoji']))    # doctest: +NORMALIZE_WHITESPACE\n\u003cp\u003eI \u003cspan class=\"emoji\" style=\"color:red\"\u003e❤\u003c/span\u003e you! \u003cspan class=\"emoji\"\u003e😛\u003c/span\u003e\u003c/p\u003e\n```\n\n**NOTE**: The emojis are only replaced when whitespace-delimited on both sides!\n\nThe following options are accepted:\n\n - `emoji`, the emoticon-to-list-of-aliases mapping,\n - `span_class`, the class name of the encompassing `\u003cspan\u003e` element\n   (default: 'emoji'). No element is created if `None`.\n\nAn example with these custom settings:\n\n```python\n\u003e\u003e\u003e from mdx_unimoji import UnimojiExtension\n\u003e\u003e\u003e img_heart = '\u003cimg alt=\"love\" src=\"heart.png\"/\u003e'\n\u003e\u003e\u003e img_tongue = '\u003cimg alt=\":P\" src=\"tongue.png\"/\u003e'\n\u003e\u003e\u003e overrides = UnimojiExtension.EMOJI\n\u003e\u003e\u003e overrides.update({img_heart: ['\u003c3'],\n...                   img_tongue: ':p :P :-p :-P'.split()})\n\u003e\u003e\u003e print(markdown(text,\n...                extensions=[UnimojiExtension(span_class='other',\n...                                             emoji=overrides)]))\n... # doctest: +NORMALIZE_WHITESPACE\n\u003cp\u003eI \u003cimg alt=\"love\" class=\"other\" src=\"heart.png\" /\u003e you! \\\n\u003cimg alt=\":P\" class=\"other\" src=\"tongue.png\" /\u003e\u003c/p\u003e\n```\n\nYou can use the `span_class` value in your CSS, e.g.:\n\n    .emoji {\n        font-family: \"Apple Color Emoji\", \"Segoe UI Emoji\",\n                     \"Noto Color Emoji\", EmojiSymbols, \"DejaVu Sans\", Symbola;\n    }\n\nInstall\n-------\n\nTo install and make available to Markdown, you can issue:\n\n    pip install mdx_unimoji\n\nor\n\n    pip install --upgrade git+git://github.com/kernc/mdx_unimoji.git\n\nThen use the above provided examples to figure your way around.\n\nHF!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernc%2Fmdx_unimoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernc%2Fmdx_unimoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernc%2Fmdx_unimoji/lists"}