A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pypi.python.org/pypi/markdown-magic below:

markdown-magic · PyPI

Project description

A Python-Markdown plugin for autocreating memes and finding the best-fitting gifs for your posts.

Why?

In most blogging platforms, putting memes or gifs in your posts is a bit of a bother. You have to manually search for them, download/generate them, then upload them back, or search and paste the url.

This Markdown extension was created to make this process simpler, less time-consuming, and more fun!

Installation

Install it using pip:

$ pip install markdown-magic
Usage

For memes

Simply do [magic] meme: top_text | bottom_text [/magic] for whichever meme template you want to use, and markdown-magic will detect which template to use on its own.

The markdown-magic currently supports the following meme templates:

More to be added soon!

For gifs

Just type in [magic] gif: <list of space-separated search parameters> [/magic] and markdown-magic will search and use the appropriate gif according to the given search parameters.

Here’s an example on the Python interpreter:

>>> import markdown
>>> text = """
... [magic] meme: rains | y u no happen during summers [/magic]
... Some text here.
... [magic] gif: spongebob squarepants [/magic]
... """
>>> print(markdown.markdown(text, extensions=['magic']))
<p><img alt="meme: rains | y u no happen during summers " src="http://i.imgflip.com/sytk1.jpg" title="meme: rains | y u no happen during summers " />
Some text here.
<img alt="gif: spongebob squarepants " src="http://media4.giphy.com/media/acEFQYr6ljKDu/200.gif" title="gif: spongebob squarepants " /></p>
Todo Copyright

Copyright 2015 Radhika Ghosal, all rights reserved.

This software is released under the MIT license.

Download files

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

Source Distribution File details

Details for the file markdown-magic-1.1.2.tar.gz.

File metadata File hashes Hashes for markdown-magic-1.1.2.tar.gz Algorithm Hash digest SHA256 96708ab444fa41ff1bedf3634d02dd8032e141bc10d246c637c909b107af3ab3 MD5 88cce83065fe4d7897e773022cbda462 BLAKE2b-256 48618e1afee388f025cbbc786d4faffff8e58ed7dc26d50e51753474cb847e73

See more details on using hashes here.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4