Commit graph

16 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
Benedikt Willi
79c7c2f060 Use f-strings, add missing classes. 2023-08-08 15:58:56 +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
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
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
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
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
J. Tanner Netterville
1a7c62fb93 Fixing tests, still needs work on auto protocol 2014-07-22 17:12:30 -05: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