Commit graph

63 commits

Author SHA1 Message Date
Benedikt Willi
bdcafbf4c6 Update README for version 0.5.0: require Python >= 3.12, enhance installation instructions, and add changelog details 2026-03-03 15:37:31 +01:00
Benedikt Willi
9e48edcfdf Refactor and Update python-markdown-oembed-extension
- **Removed legacy build files**:
  - Deleted obsolete `.travis.yml`, `flake.lock`, and `flake.nix` files that were no longer needed for the current build and dependency management setup.

- **Updated versioning**:
  - Incremented the package version from `0.4.0` to `0.5.0` in `version.py` and made adjustments in `pyproject.toml` to reflect the new versioning mechanism.

- **Refined package structure**:
  - Moved source files from `src/python_markdown_oembed_extension` to `mdx_oembed` and renamed references accordingly for better clarity and organization of the codebase.

- **Enhanced OEmbed functionality**:
  - Added dedicated endpoint handling in the new `endpoints.py`.
  - Refactored the `oembed.py` file to implement a minimal oEmbed consumer, replacing the earlier dependency on `python-oembed`.

- **Improved test coverage**:
  - Transitioned tests from `unittest` to `pytest` framework for better maintainability.
  - Expanded unit tests, including better error handling and validation for various media types.

- **Updated dependency requirements**:
  - Raised minimum Python version from `3.9` to `3.12` in `pyproject.toml`.
  - Removed non-essential dependencies and restructured the dependency declarations to streamline package management.

These changes focus on modernizing the codebase, improving adherence to current Python standards, and enhancing overall functionality and maintainability.
2026-03-03 14:26:52 +01:00
Benedikt Willi
6864af69fb Reorder authors in pyproject.toml to place Benedikt Willi first 2026-03-03 10:46:03 +01:00
Benedikt Willi
428883fd99 Rename project to "python-markdown-oembed-extension" and update homepage URL 2026-03-03 09:25:20 +01:00
Benedikt Willi
7e41514005 Bump version to 0.4.0 and update changelog; clean up tests 2026-03-02 17:44:08 +01:00
Benedikt Willi
dd567e7013 Merge branch 'master' of https://github.com/Hopiu/python-markdown-oembed 2026-03-02 17:35:20 +01:00
Benedikt Willi
20f2880e07 Refactor and modernize codebase. 2026-03-02 17:25:43 +01:00
Benedikt Willi
f3963e7ad5
Update __init__.py 2023-11-07 16:40:00 +01:00
Benedikt Willi
22e7f76d56
Update __init__.py 2023-11-07 16:33:46 +01:00
Benedikt Willi
6df30f7cf3
Merge pull request #1 from durgaBahadur/master
use flit packaging tool, write simple test
2023-11-07 11:19:20 +01:00
cristoffel
bb5eb5445e use flit packaging tool, write simple test 2023-11-06 18:58:32 +01:00
Benedikt Willi
79c7c2f060 Use f-strings, add missing classes. 2023-08-08 15:58:56 +02:00
Benedikt Willi
745056d5e6
Update extension.py 2022-08-16 08:19:59 +02:00
Benedikt Willi
0e3bf49c86
Update inlinepatterns.py 2022-08-16 08:18:53 +02:00
Benedikt Willi
477d04541c
Update inlinepatterns.py 2022-08-15 17:18:39 +02:00
Benedikt Willi
d216b6eb68
Update inlinepatterns.py 2022-08-15 16:41:35 +02:00
Benedikt Willi
e5d64d6853
Update inlinepatterns.py 2022-08-15 16:21:34 +02:00
W.A.Flozart
cb46ae8f8a
Merge pull request #3 from Hopiu/patch-3
Update extension.py
2022-08-08 13:19:31 +02:00
Benedikt Willi
a665517a5d
Update extension.py 2022-08-08 13:18:50 +02:00
W.A.Flozart
ffbac50ce0
Merge pull request #2 from Hopiu/patch-2
Update extension.py
2022-08-08 11:37:11 +02:00
Benedikt Willi
cdc3a41260
Update extension.py 2022-08-08 11:33:25 +02:00
W.A.Flozart
7fb4cb2aa1
Update endpoints.py 2022-08-02 14:13:40 +02:00
W.A.Flozart
5d6b341f8a
Update endpoints.py 2021-12-08 15:07:57 +01:00
W.A.Flozart
d510e7f081
Merge pull request #1 from Hopiu/master
Thanks for the fix, Hopi!  
Merging fists into inlinepatterns.py
2020-04-07 14:43:20 +02:00
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
Tanner Netterville
8d8dd3d21b Merge branch 'anantshri-patch-1' 2016-04-22 00:15:56 -05:00
Anant Shrivastava
78645522ee Slideshare test case 2016-04-14 14:35:22 +05:30
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
029e1cd4f2 Merge pull request #5 from rennat/0.2.0
0.2.0
2016-02-16 05:08:49 -06:00
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
Tanner Netterville
7d5a0ef503 Merge remote-tracking branch 'wenzil/master' into 0.2.0 2016-02-16 05:02:02 -06:00
Tanner Netterville
784a7a0189 update setup.py test requirements 2015-04-21 13:03:05 -05:00
Tanner Netterville
12515f4907 Add Travis CI config 2015-04-21 12:32:52 -05: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
4a7f2a4d46 Version bump 2015-04-02 03:48:18 -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