Commit graph

23 commits

Author SHA1 Message Date
Benedikt Willi
c1088492e0
Update inlinepatterns.py 2020-04-07 14:37:38 +02:00
Floroni
8768a5a546 removed True argument from store() as it raised a 3 arguments given error 2019-03-06 12:22:20 +01:00
Tanner Netterville
81a8378564 version bump for 0.2.1 and wheel setup 2016-04-22 00:17:51 -05:00
Anant Shrivastava
d2d5632f4f Update endpoints.py 2016-04-14 08:53:55 +05:30
Anant Shrivastava
9e11630327 Adding slideshare as a oembed provider
Adding slideshare as a oembed provider
2016-04-14 08:46:26 +05:30
Tanner Netterville
87bbf8fc90 Release 0.2.0
- Merged improvements from Wenzil's fork. Thanks Wenzil!
- Update for new version of Markdown breaks backwards compatability.
- Dropped test support for Python 2.6
- Fixed test suite (including Travis CI config)
2016-02-16 05:04:24 -06:00
Sami Turcotte
95d2797cfa Fix syntax error 2015-04-21 05:23:39 -04:00
Sami Turcotte
d8b37231ac Version bump 2015-04-21 05:19:19 -04:00
Sami Turcotte
e2e29489d7 Allow arbitrary oEmbed endpoints
Before this change, only three hardcoded oEmbed endpoints were available
for users of the extension; youtube, flickr and vimeo. In the
configuration, it was only possible to pass a subset of those 3 oEmbed
endpoints. It was done by passing the names of the allowed endpoints.

With this change, the API has changed. The allowed_endpoints kwarg now
expects to be passed a list of OEmbedEndpoint objects (as opposed to
names). This means the responsibility of creating OEmbedEndpoint objects
has been shifted to the user of the extension. If the allowed_endpoints
kwarg is omitted, the default oEmbed endpoints used will be the same as
before; youtube, flickr and vimeo.

The motivation is to allow arbitrary oEmbed endpoints, without
necessitating anyone to maintain the list of all possible oEmbed
endpoints out there.
2015-04-21 05:18:42 -04:00
Sami Turcotte
350d90b6b9 Version bump 2015-04-20 00:44:21 -04:00
Sami Turcotte
639d4a6dec Change div wrapper to a figure wrapper
The reasoning is that the translation of Markdown into HTML should be as
concise as possible. The semantics of the figure element seem to fit the
embedded nature of OEmbed content moreso than the div element which is
quite generic.
2015-04-20 00:42:50 -04:00
Sami Turcotte
0e3aaac58c version bump 2015-04-04 03:34:33 -04:00
Sami Turcotte
f3f09aae98 Wrap oEmbed html output in a div
To keep a constant aspect ratio for the resulting iframe of an oEmbed
request in a responsive website, the iframe needs a div wrapper. With
this change, html results are wrapped in a "oembed" class div.
2015-04-04 03:33:33 -04:00
Sami Turcotte
7f12354970 Version bump 2015-04-03 01:51:34 -04:00
Sami Turcotte
3adab335ec Add support for python-markdown safe mode
Mark the resulting OEmbed html tags as safe so they don't get stripped
away in safe mode.
2015-04-03 01:22:11 -04:00
Sami Turcotte
c3a4466eca Reconcile with Markdown 2.6
Updated the initialization of OEmbedExtension to be compatible with
Markdown 2.6. See https://pythonhosted.org/Markdown/release-2.6.html
2015-04-02 03:47:33 -04:00
J. Tanner Netterville
469e696a95 remove silly import from setup.py 2014-07-23 16:02:57 -05:00
J. Tanner Netterville
001db644a5 minor update version and setup.py 2014-07-22 17:20:21 -05:00
J. Tanner Netterville
1a7c62fb93 Fixing tests, still needs work on auto protocol 2014-07-22 17:12:30 -05:00
Jordan Reiter
4b05b076be Update endpoints.py
Many websites are using https, often by default. This allows https links to be recognized as well.
2014-07-14 15:44:36 -04:00
J. Tanner Netterville
798c9850e6 improve portability 2012-11-14 12:15:41 -06:00
J. Tanner Netterville
2f56c1c11a allow configuring which endpoints to allow 2012-11-13 17:28:04 -06:00
J. Tanner Netterville
e4ec8a72fb initial commit
Functional beta
2012-11-13 15:28:10 -06:00