{ "info": { "author": "Max Arnold", "author_email": "arnold.maxim@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup" ], "description": "# Tweetable quotes for Python-Markdown\n\nWhy this extension? A lot of blog posts have social sharing buttons at the top or bottom of a page. But there is a recent trend to embed shareable quotes right into the post body, which noticeably increases content sharing. Some sites even allow you to select any part of text and share it (see [medium.com](https://medium.com/life-learning/7-reasons-why-you-will-never-do-anything-amazing-with-your-life-2a1841f1335d) for example). The basic idea is that people prefer to quote a story rather than its headline. And you can have multiple shareable quotes in a single story!\n\nWith this extension you will be able to turn the text below:\n\n [tweetable url=\"http://www.brainyquote.com/quotes/authors/v/vladimir_lenin.html\"]\n When there is state there can be no freedom,\n but when there is freedom there will be no state.\n -- Vladimir Lenin\n [/tweetable]\n\ninto the following nice styled quote:\n\n![Screenshot of the quote](/screenshot.png)\n\n## Installation\n\n pip install markdown-tweetable\n\nor:\n\n pip install git+git://github.com/max-arnold/markdown-tweetable.git\n\n\n## Usage\n\nFull syntax:\n\n [tweetable alt=\"When there is state there can be no freedom,\n but when there is freedom there will be no state\"\n url=\"http://en.wikipedia.org/wiki/Vladimir_Lenin\"\n hashtags=\"#lenin\"]\n When there is state there can be no freedom, but when there is freedom there will be no state.\n -- Vladimir Lenin\n [/tweetable]\n\nAnd you definitely want to add some style. Below is an example:\n\n blockquote.tweetable {\n border-top: 1px solid #CCC;\n border-bottom: 1px solid #CCC;\n border-left: none;\n border-right: none;\n position: relative;\n }\n\n blockquote.tweetable::before {\n content: '\u201c';\n position: absolute;\n top: 0;\n left: 0;\n font-size: 4em;\n font-family: \"inherit\";\n font-weight: bold;\n color: #888;\n }\n\n blockquote.tweetable p {\n margin: 0 0 0.5em 1.5em;\n font-style: italic;\n }\n\n .tweetable-svg-icon {\n /* fill: #db3535; */\n width: 1em;\n }\n\n## List of configuration parameters\n\n### Social buttons\n\nList of social networks for sharing. By default contains all supported networks:\n\n networks=('twitter', 'facebook', 'linkedin', 'vkontakte',)\n\nYou can also specify it as a string (useful if you configured this markdown extension using module path with parameters):\n\n networks='twitter;facebook;linkedin;vkontakte'\n\n### HTML snippet\n\nBy default it looks like this:\n\n snippet='''
\n

{quote}

\n

{buttons}

\n
'''\n\n### Social button snippets\n\n snippet_facebook='''\n {icon_facebook}'''\n\n snippet_linkedin='''\n {icon_linkedin}'''\n\n snippet_twitter='''\n {icon_twitter}'''\n\n snippet_vkontakte='''\n {icon_vkontakte}'''\n\n### Social icons\n\n icon_facebook='''\n \n \n \n '''\n\n icon_linkedin='''\n ...\n '''\n\n icon_twitter='''\n ...\n '''\n\n icon_vkontakte='''\n ...\n '''\n\n\nGiven all these configuration options, the resulting HTML markup would look like this:\n\n
\n

When there is state there can be no freedom,\n but when there is freedom there will be no state.\n -- Vladimir Lenin\n

\n\n

\n \n Twitter icon here...\n \n\n \n Facebook icon here...\n \n\n \n LinkedIn icon here...\n \n\n \n VKontakte icon here...\n \n

\n
\n\n\n### Button docs:\n\n* https://developers.facebook.com/docs/plugins/share-button/\n* http://developer.linkedin.com/documents/share-linkedin\n* https://dev.twitter.com/docs/tweet-button\n* http://vk.com/dev/share_details\n\nNOTES:\n\n* Facebook button sucks, because it [does not support](http://stackoverflow.com/questions/20956229/has-facebook-sharer-php-changed-to-no-longer-accept-detailed-parameters) prefilled text.\n* LinkedIn [does not support](http://help.linkedin.com/app/answers/detail/a_id/5028/~/linkedin-signal---no-longer-supported) hashtags.\n\n### SVG Icons\n\nDefault share buttons are rendered using [Super Tiny Icons](https://github.com/edent/SuperTinyIcons).\n\n## Dependencies\n\n* [Markdown 2.6+](http://pythonhosted.org/Markdown/)\n\n## Copyright\n\nCopyright 2014-2017 [Max Arnold](http://ar0.me/blog/en/), all rights reserved.\n\nThis software is released under the MIT License.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/max-arnold/markdown-tweetable", "keywords": "markup", "license": "LICENSE.md", "maintainer": "", "maintainer_email": "", "name": "markdown-tweetable", "package_url": "https://pypi.org/project/markdown-tweetable/", "platform": "", "project_url": "https://pypi.org/project/markdown-tweetable/", "project_urls": { "Homepage": "https://github.com/max-arnold/markdown-tweetable" }, "release_url": "https://pypi.org/project/markdown-tweetable/1.4.0/", "requires_dist": null, "requires_python": "", "summary": "Tweetable quotes for Python-Markdown.", "version": "1.4.0" }, "last_serial": 4963166, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "798917d29f3c98df80d285f38b936495", "sha256": "646ecbf2f9cf158d8b2d91e3be30a1222d5c8953ee7ee91626c36223d900c20d" }, "downloads": -1, "filename": "markdown-tweetable-1.0.tar.gz", "has_sig": false, "md5_digest": "798917d29f3c98df80d285f38b936495", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20244, "upload_time": "2014-06-15T07:15:00", "url": "https://files.pythonhosted.org/packages/0d/93/892cc736d37d8213a53ca9f0c0dd2bdfaf186cd337a177397e298e08a95c/markdown-tweetable-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b6b27d6486c922fb00637d11eb0b8dce", "sha256": "03e6a720ad699e901e46b035ffadeb43a82746bac6079feee0e3b80e7dbfce41" }, "downloads": -1, "filename": "markdown-tweetable-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b6b27d6486c922fb00637d11eb0b8dce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20541, "upload_time": "2014-06-17T10:28:26", "url": "https://files.pythonhosted.org/packages/3f/ad/79f0103ca9c4aeeace636b3bb0dc05c4b9486bfb5c07de111e2ddf776b60/markdown-tweetable-1.0.1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "73526bfff86e42b5adbe76b85722f20b", "sha256": "22db03c705df7d6d554d875aa11f9afce3324cd796eeb0fb4e20cc0950102e25" }, "downloads": -1, "filename": "markdown-tweetable-1.1.0.tar.gz", "has_sig": false, "md5_digest": "73526bfff86e42b5adbe76b85722f20b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20728, "upload_time": "2014-06-21T03:56:54", "url": "https://files.pythonhosted.org/packages/11/68/698168d809772d8545a9666c50cd9a1f31e72c6494af1471bee725677ed7/markdown-tweetable-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "94cbc71b0616a63d6e1b873628a043d3", "sha256": "c0679e09ce839f2852e20da37c562dc08751971059432594ab49ce46ac72b5cc" }, "downloads": -1, "filename": "markdown-tweetable-1.1.1.tar.gz", "has_sig": false, "md5_digest": "94cbc71b0616a63d6e1b873628a043d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20776, "upload_time": "2014-06-21T04:15:28", "url": "https://files.pythonhosted.org/packages/b0/53/1377a8b24706b64fa023d6fe33b2961fb36d7d0cdfac957d59553ca58bd0/markdown-tweetable-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "b7a98b1545b9bad10ff26aede2b9a3e1", "sha256": "f98abd145e41a4768257deb38f277c17b1ae6aff7f57f921183c97b6eda8471c" }, "downloads": -1, "filename": "markdown-tweetable-1.2.0.tar.gz", "has_sig": false, "md5_digest": "b7a98b1545b9bad10ff26aede2b9a3e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21131, "upload_time": "2014-10-22T13:17:05", "url": "https://files.pythonhosted.org/packages/4c/13/b0126d109a589f3b5aa15eb6b0f93ea02ee177b6bc378d95a36b395f2b9c/markdown-tweetable-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "d3c4ccbd984659eb338609adced30d90", "sha256": "9576377451ee6ada35c887d2d987027751cf8e3edc7629661b953a7f4ba52e3b" }, "downloads": -1, "filename": "markdown-tweetable-1.2.1.tar.gz", "has_sig": false, "md5_digest": "d3c4ccbd984659eb338609adced30d90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21024, "upload_time": "2016-01-18T11:12:02", "url": "https://files.pythonhosted.org/packages/16/13/e9d1c08ad96cab2d8206b51b44724bf7c72298336a57801a921435e10c33/markdown-tweetable-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "3dbac08df4c13c4bdb0454f580749456", "sha256": "4874e5a77f62cc344e3e3405b25047cb7f2ad9f00710d9c674dbc06cd31ccaed" }, "downloads": -1, "filename": "markdown-tweetable-1.2.2.tar.gz", "has_sig": false, "md5_digest": "3dbac08df4c13c4bdb0454f580749456", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21016, "upload_time": "2016-01-18T11:13:57", "url": "https://files.pythonhosted.org/packages/28/4a/3cf2318c2b178ed474ab331603a2f77320386dd3de3829509363ec6ad198/markdown-tweetable-1.2.2.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "612b166ca1646410de778f83e0bbddcc", "sha256": "3533ca69136ba43117234c143073c8491ded4bc4f573a6a54db6c2bf1254ae2b" }, "downloads": -1, "filename": "markdown-tweetable-1.3.0.tar.gz", "has_sig": false, "md5_digest": "612b166ca1646410de778f83e0bbddcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19392, "upload_time": "2017-05-21T10:23:13", "url": "https://files.pythonhosted.org/packages/f7/6e/f20eb5d489bef05ac6fc09b2b7e39e29b5f6013e533e9433ef71af3a3b14/markdown-tweetable-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "67dffeb4807ef73e92d06b6a73599336", "sha256": "b3e6349af28c8f7b1981c5b3f414c8b1efa22b31c5595147828db9379ecd5459" }, "downloads": -1, "filename": "markdown-tweetable-1.4.0.tar.gz", "has_sig": false, "md5_digest": "67dffeb4807ef73e92d06b6a73599336", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19217, "upload_time": "2019-03-20T11:16:33", "url": "https://files.pythonhosted.org/packages/73/4d/5d0b39b4e761687d31df7b274cf180c4423901dc85bf6dc5a426ff045a2f/markdown-tweetable-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "67dffeb4807ef73e92d06b6a73599336", "sha256": "b3e6349af28c8f7b1981c5b3f414c8b1efa22b31c5595147828db9379ecd5459" }, "downloads": -1, "filename": "markdown-tweetable-1.4.0.tar.gz", "has_sig": false, "md5_digest": "67dffeb4807ef73e92d06b6a73599336", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19217, "upload_time": "2019-03-20T11:16:33", "url": "https://files.pythonhosted.org/packages/73/4d/5d0b39b4e761687d31df7b274cf180c4423901dc85bf6dc5a426ff045a2f/markdown-tweetable-1.4.0.tar.gz" } ] }