Commit graph

11 commits

Author SHA1 Message Date
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
cristoffel
bb5eb5445e use flit packaging tool, write simple test 2023-11-06 18:58:32 +01: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
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
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
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
e4ec8a72fb initial commit
Functional beta
2012-11-13 15:28:10 -06:00