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:
Lord of the Rings Boromir - “One does not simply”
The Most Interesting Man in the World - “I don’t always… when I do”
Ancient Aliens History Channel Guy
Grumpy Cat
Buzz Lightyear and Woody from Toy Story - “X, X everywhere”
Futurama Fry - “Not sure if…”
Y U NO Guy
Ned Stark from Game of Thrones - “Brace yourself/yourselves…”
X all the Y
Bill Lumburgh from Office Space - “…that would be great”
The rent is too damn high
The Big Lebowski - “Am I the only one around here…”
Matrix Morpheus - “What if I told you…”
Ain’t nobody got time for that
Heath Ledger Joker - “Nobody bats an eye… everyone loses their minds”
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
Expand list of supported memes
Find a way to search for xkcd comics and other webcomics efficiently using keywords
Find more cool things to implement in the [magic] tag
Copyright
Copyright 2015 Radhika Ghosal, all rights reserved.
This software is released under the MIT license.
Metadata
Release files for markdown-magic 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| markdown-magic-1.1.2.tar.gz | 6.6 kB | Without provenance | Details |
Release files / markdown-magic-1.1.2.tar.gz
| Download URL | markdown-magic-1.1.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96708ab444fa41ff1bedf3634d02dd8032e141bc10d246c637c909b107af3ab3
|
|
BLAKE2b-256 checksum How to use checksums |
48618e1afee388f025cbbc786d4faffff8e58ed7dc26d50e51753474cb847e73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for markdown-magic 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.