@formaggio-software/rhtop-linux-amd64 0.0.0-stage → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -4
- package/payload/LICENSE.txt +95 -0
- package/payload/NOTICE +16 -0
- package/payload/THIRD_PARTY_NOTICES/altgraph-0.17.5.dist-info/LICENSE +18 -0
- package/payload/THIRD_PARTY_NOTICES/altgraph-0.17.5.dist-info/METADATA +307 -0
- package/payload/THIRD_PARTY_NOTICES/annotated_types-0.8.0.dist-info/METADATA +295 -0
- package/payload/THIRD_PARTY_NOTICES/annotated_types-0.8.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/anyio-4.16.0.dist-info/METADATA +108 -0
- package/payload/THIRD_PARTY_NOTICES/anyio-4.16.0.dist-info/licenses/LICENSE +20 -0
- package/payload/THIRD_PARTY_NOTICES/attrs-26.1.0.dist-info/METADATA +199 -0
- package/payload/THIRD_PARTY_NOTICES/attrs-26.1.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/build-1.6.1.dist-info/METADATA +142 -0
- package/payload/THIRD_PARTY_NOTICES/build-1.6.1.dist-info/licenses/LICENSE +20 -0
- package/payload/THIRD_PARTY_NOTICES/cffi-2.1.1.dist-info/METADATA +67 -0
- package/payload/THIRD_PARTY_NOTICES/cffi-2.1.1.dist-info/licenses/LICENSE +23 -0
- package/payload/THIRD_PARTY_NOTICES/click-8.5.1.dist-info/METADATA +83 -0
- package/payload/THIRD_PARTY_NOTICES/click-8.5.1.dist-info/licenses/LICENSE.txt +28 -0
- package/payload/THIRD_PARTY_NOTICES/cryptography-50.0.2.dist-info/METADATA +111 -0
- package/payload/THIRD_PARTY_NOTICES/cryptography-50.0.2.dist-info/licenses/LICENSE +3 -0
- package/payload/THIRD_PARTY_NOTICES/cryptography-50.0.2.dist-info/licenses/LICENSE.APACHE +202 -0
- package/payload/THIRD_PARTY_NOTICES/cryptography-50.0.2.dist-info/licenses/LICENSE.BSD +27 -0
- package/payload/THIRD_PARTY_NOTICES/h11-0.16.0.dist-info/METADATA +202 -0
- package/payload/THIRD_PARTY_NOTICES/h11-0.16.0.dist-info/licenses/LICENSE.txt +22 -0
- package/payload/THIRD_PARTY_NOTICES/hatchling-1.33.0.dist-info/METADATA +81 -0
- package/payload/THIRD_PARTY_NOTICES/hatchling-1.33.0.dist-info/licenses/LICENSE.txt +9 -0
- package/payload/THIRD_PARTY_NOTICES/httpcore2-2.16.2.dist-info/METADATA +798 -0
- package/payload/THIRD_PARTY_NOTICES/httpcore2-2.16.2.dist-info/licenses/LICENSE.md +28 -0
- package/payload/THIRD_PARTY_NOTICES/httpx2-2.16.2.dist-info/METADATA +227 -0
- package/payload/THIRD_PARTY_NOTICES/httpx2-2.16.2.dist-info/licenses/LICENSE.md +13 -0
- package/payload/THIRD_PARTY_NOTICES/idna-3.20.dist-info/METADATA +176 -0
- package/payload/THIRD_PARTY_NOTICES/idna-3.20.dist-info/licenses/LICENSE.md +31 -0
- package/payload/THIRD_PARTY_NOTICES/iniconfig-2.3.1.dist-info/METADATA +84 -0
- package/payload/THIRD_PARTY_NOTICES/iniconfig-2.3.1.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/jaraco.classes-3.4.0.dist-info/LICENSE +17 -0
- package/payload/THIRD_PARTY_NOTICES/jaraco.classes-3.4.0.dist-info/METADATA +60 -0
- package/payload/THIRD_PARTY_NOTICES/jaraco_context-6.1.2.dist-info/METADATA +81 -0
- package/payload/THIRD_PARTY_NOTICES/jaraco_context-6.1.2.dist-info/licenses/LICENSE +18 -0
- package/payload/THIRD_PARTY_NOTICES/jaraco_functools-4.6.0.dist-info/METADATA +68 -0
- package/payload/THIRD_PARTY_NOTICES/jaraco_functools-4.6.0.dist-info/licenses/LICENSE +18 -0
- package/payload/THIRD_PARTY_NOTICES/jeepney-0.9.0.dist-info/METADATA +35 -0
- package/payload/THIRD_PARTY_NOTICES/jeepney-0.9.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/jsonschema-4.26.0.dist-info/METADATA +170 -0
- package/payload/THIRD_PARTY_NOTICES/jsonschema-4.26.0.dist-info/licenses/COPYING +19 -0
- package/payload/THIRD_PARTY_NOTICES/jsonschema_specifications-2025.9.1.dist-info/METADATA +54 -0
- package/payload/THIRD_PARTY_NOTICES/jsonschema_specifications-2025.9.1.dist-info/licenses/COPYING +19 -0
- package/payload/THIRD_PARTY_NOTICES/keyring-25.7.0.dist-info/METADATA +554 -0
- package/payload/THIRD_PARTY_NOTICES/keyring-25.7.0.dist-info/licenses/LICENSE +18 -0
- package/payload/THIRD_PARTY_NOTICES/linkify_it_py-2.2.0.dist-info/METADATA +262 -0
- package/payload/THIRD_PARTY_NOTICES/linkify_it_py-2.2.0.dist-info/licenses/LICENSE +48 -0
- package/payload/THIRD_PARTY_NOTICES/markdown_it_py-4.3.0.dist-info/METADATA +237 -0
- package/payload/THIRD_PARTY_NOTICES/markdown_it_py-4.3.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/markdown_it_py-4.3.0.dist-info/licenses/LICENSE.markdown-it +22 -0
- package/payload/THIRD_PARTY_NOTICES/mcp-2.3.0.dist-info/METADATA +172 -0
- package/payload/THIRD_PARTY_NOTICES/mcp-2.3.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/mcp_types-2.3.0.dist-info/METADATA +43 -0
- package/payload/THIRD_PARTY_NOTICES/mcp_types-2.3.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/mdit_py_plugins-0.7.0.dist-info/METADATA +60 -0
- package/payload/THIRD_PARTY_NOTICES/mdit_py_plugins-0.7.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/mdurl-0.1.2.dist-info/LICENSE +46 -0
- package/payload/THIRD_PARTY_NOTICES/mdurl-0.1.2.dist-info/METADATA +32 -0
- package/payload/THIRD_PARTY_NOTICES/more_itertools-11.2.1.dist-info/METADATA +302 -0
- package/payload/THIRD_PARTY_NOTICES/more_itertools-11.2.1.dist-info/licenses/LICENSE +19 -0
- package/payload/THIRD_PARTY_NOTICES/opentelemetry_api-1.45.2.dist-info/METADATA +43 -0
- package/payload/THIRD_PARTY_NOTICES/opentelemetry_api-1.45.2.dist-info/licenses/LICENSE +201 -0
- package/payload/THIRD_PARTY_NOTICES/packaging-26.3.dist-info/METADATA +112 -0
- package/payload/THIRD_PARTY_NOTICES/packaging-26.3.dist-info/licenses/LICENSE +3 -0
- package/payload/THIRD_PARTY_NOTICES/packaging-26.3.dist-info/licenses/LICENSE.APACHE +177 -0
- package/payload/THIRD_PARTY_NOTICES/packaging-26.3.dist-info/licenses/LICENSE.BSD +23 -0
- package/payload/THIRD_PARTY_NOTICES/pathspec-1.1.1.dist-info/METADATA +392 -0
- package/payload/THIRD_PARTY_NOTICES/pathspec-1.1.1.dist-info/licenses/LICENSE +373 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/METADATA +110 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/AUTHORS.txt +888 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/LICENSE.txt +20 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/cachecontrol/LICENSE.txt +13 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/certifi/LICENSE +20 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/distlib/LICENSE.txt +284 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/distro/LICENSE +202 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/idna/LICENSE.md +31 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/msgpack/COPYING +14 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/packaging/LICENSE +3 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.APACHE +177 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/packaging/LICENSE.BSD +23 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/pkg_resources/LICENSE +17 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/platformdirs/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/pygments/LICENSE +25 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/pyproject_hooks/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/requests/LICENSE +175 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/resolvelib/LICENSE +13 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/rich/LICENSE +19 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/tomli/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/tomli_w/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/truststore/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pip-26.2.2.dist-info/licenses/src/pip/_vendor/urllib3/LICENSE.txt +21 -0
- package/payload/THIRD_PARTY_NOTICES/platformdirs-4.14.7.dist-info/METADATA +114 -0
- package/payload/THIRD_PARTY_NOTICES/platformdirs-4.14.7.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pluggy-1.7.0.dist-info/METADATA +152 -0
- package/payload/THIRD_PARTY_NOTICES/pluggy-1.7.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pycparser-3.12.dist-info/METADATA +286 -0
- package/payload/THIRD_PARTY_NOTICES/pycparser-3.12.dist-info/licenses/LICENSE +27 -0
- package/payload/THIRD_PARTY_NOTICES/pydantic-2.14.3.dist-info/METADATA +1646 -0
- package/payload/THIRD_PARTY_NOTICES/pydantic-2.14.3.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pydantic_core-2.50.4.dist-info/METADATA +172 -0
- package/payload/THIRD_PARTY_NOTICES/pydantic_core-2.50.4.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pygments-2.21.0.dist-info/METADATA +58 -0
- package/payload/THIRD_PARTY_NOTICES/pygments-2.21.0.dist-info/licenses/AUTHORS +296 -0
- package/payload/THIRD_PARTY_NOTICES/pygments-2.21.0.dist-info/licenses/LICENSE +25 -0
- package/payload/THIRD_PARTY_NOTICES/pyinstaller-6.22.3.dist-info/METADATA +213 -0
- package/payload/THIRD_PARTY_NOTICES/pyinstaller-6.22.3.dist-info/licenses/COPYING.txt +648 -0
- package/payload/THIRD_PARTY_NOTICES/pyinstaller_hooks_contrib-2026.10.dist-info/METADATA +373 -0
- package/payload/THIRD_PARTY_NOTICES/pyinstaller_hooks_contrib-2026.10.dist-info/licenses/LICENSE +521 -0
- package/payload/THIRD_PARTY_NOTICES/pyjwt-2.15.1.dist-info/METADATA +94 -0
- package/payload/THIRD_PARTY_NOTICES/pyjwt-2.15.1.dist-info/licenses/AUTHORS.rst +7 -0
- package/payload/THIRD_PARTY_NOTICES/pyjwt-2.15.1.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pyproject_hooks-1.3.3.dist-info/METADATA +27 -0
- package/payload/THIRD_PARTY_NOTICES/pyproject_hooks-1.3.3.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pytest-9.2.0.dist-info/METADATA +217 -0
- package/payload/THIRD_PARTY_NOTICES/pytest-9.2.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/pytest_asyncio-1.5.0.dist-info/METADATA +100 -0
- package/payload/THIRD_PARTY_NOTICES/pytest_asyncio-1.5.0.dist-info/licenses/LICENSE +201 -0
- package/payload/THIRD_PARTY_NOTICES/python_multipart-0.0.34.dist-info/METADATA +179 -0
- package/payload/THIRD_PARTY_NOTICES/python_multipart-0.0.34.dist-info/licenses/LICENSE.txt +202 -0
- package/payload/THIRD_PARTY_NOTICES/pyyaml-6.0.3.dist-info/METADATA +59 -0
- package/payload/THIRD_PARTY_NOTICES/pyyaml-6.0.3.dist-info/licenses/LICENSE +20 -0
- package/payload/THIRD_PARTY_NOTICES/referencing-0.37.0.dist-info/METADATA +64 -0
- package/payload/THIRD_PARTY_NOTICES/referencing-0.37.0.dist-info/licenses/COPYING +19 -0
- package/payload/THIRD_PARTY_NOTICES/rich-15.0.0.dist-info/METADATA +479 -0
- package/payload/THIRD_PARTY_NOTICES/rich-15.0.0.dist-info/licenses/LICENSE +19 -0
- package/payload/THIRD_PARTY_NOTICES/rpds_py-2026.9.1.dist-info/METADATA +99 -0
- package/payload/THIRD_PARTY_NOTICES/rpds_py-2026.9.1.dist-info/licenses/LICENSE +19 -0
- package/payload/THIRD_PARTY_NOTICES/ruff-0.17.5.dist-info/METADATA +484 -0
- package/payload/THIRD_PARTY_NOTICES/ruff-0.17.5.dist-info/licenses/LICENSE +430 -0
- package/payload/THIRD_PARTY_NOTICES/secretstorage-3.5.0.dist-info/METADATA +109 -0
- package/payload/THIRD_PARTY_NOTICES/secretstorage-3.5.0.dist-info/licenses/LICENSE +25 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/autocommand-2.2.2.dist-info/LICENSE +166 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/autocommand-2.2.2.dist-info/METADATA +420 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/LICENSE +17 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/backports.tarfile-1.2.0.dist-info/METADATA +46 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/METADATA +133 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/licenses/LICENSE +73 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/jaraco.text-4.0.0.dist-info/LICENSE +17 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/jaraco.text-4.0.0.dist-info/METADATA +96 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/jaraco_context-6.1.0.dist-info/METADATA +82 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/jaraco_context-6.1.0.dist-info/licenses/LICENSE +18 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/jaraco_functools-4.4.0.dist-info/METADATA +69 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/jaraco_functools-4.4.0.dist-info/licenses/LICENSE +18 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/more_itertools-10.8.0.dist-info/METADATA +283 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/more_itertools-10.8.0.dist-info/licenses/LICENSE +19 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/packaging-26.3.dist-info/METADATA +112 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/packaging-26.3.dist-info/licenses/LICENSE +3 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/packaging-26.3.dist-info/licenses/LICENSE.APACHE +177 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/packaging-26.3.dist-info/licenses/LICENSE.BSD +23 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/platformdirs-4.4.0.dist-info/METADATA +350 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/platformdirs-4.4.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/tomli-2.4.0.dist-info/METADATA +270 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/tomli-2.4.0.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/wheel-0.46.3.dist-info/METADATA +69 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/wheel-0.46.3.dist-info/licenses/LICENSE.txt +21 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/zipp-3.23.0.dist-info/METADATA +106 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools/_vendor/zipp-3.23.0.dist-info/licenses/LICENSE +18 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools-84.2.1.dist-info/METADATA +140 -0
- package/payload/THIRD_PARTY_NOTICES/setuptools-84.2.1.dist-info/licenses/LICENSE +17 -0
- package/payload/THIRD_PARTY_NOTICES/sse_starlette-3.7.0.dist-info/METADATA +493 -0
- package/payload/THIRD_PARTY_NOTICES/sse_starlette-3.7.0.dist-info/licenses/AUTHORS +10 -0
- package/payload/THIRD_PARTY_NOTICES/sse_starlette-3.7.0.dist-info/licenses/LICENSE +27 -0
- package/payload/THIRD_PARTY_NOTICES/starlette-1.10.0.dist-info/METADATA +181 -0
- package/payload/THIRD_PARTY_NOTICES/starlette-1.10.0.dist-info/licenses/LICENSE.md +27 -0
- package/payload/THIRD_PARTY_NOTICES/textual-6.12.0.dist-info/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/textual-6.12.0.dist-info/METADATA +265 -0
- package/payload/THIRD_PARTY_NOTICES/tomlkit-0.15.2.dist-info/METADATA +93 -0
- package/payload/THIRD_PARTY_NOTICES/tomlkit-0.15.2.dist-info/licenses/LICENSE +20 -0
- package/payload/THIRD_PARTY_NOTICES/trove_classifiers-2026.9.21.13.dist-info/METADATA +82 -0
- package/payload/THIRD_PARTY_NOTICES/trove_classifiers-2026.9.21.13.dist-info/licenses/LICENSE +201 -0
- package/payload/THIRD_PARTY_NOTICES/truststore-0.10.5.dist-info/METADATA +110 -0
- package/payload/THIRD_PARTY_NOTICES/truststore-0.10.5.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/typing_extensions-4.16.0.dist-info/METADATA +73 -0
- package/payload/THIRD_PARTY_NOTICES/typing_extensions-4.16.0.dist-info/licenses/LICENSE +279 -0
- package/payload/THIRD_PARTY_NOTICES/typing_inspection-0.4.5.dist-info/METADATA +49 -0
- package/payload/THIRD_PARTY_NOTICES/typing_inspection-0.4.5.dist-info/licenses/LICENSE +21 -0
- package/payload/THIRD_PARTY_NOTICES/uvicorn-0.54.0.dist-info/METADATA +189 -0
- package/payload/THIRD_PARTY_NOTICES/uvicorn-0.54.0.dist-info/licenses/LICENSE.md +27 -0
- package/payload/rhtop +0 -0
- package/README.md +0 -3
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: linkify-it-py
|
|
3
|
+
Version: 2.2.0
|
|
4
|
+
Summary: Links recognition library with FULL unicode support.
|
|
5
|
+
Author: tsutsu3
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/tsutsu3/linkify-it-py
|
|
8
|
+
Keywords: linkify,linkifier,autolink,autolinker
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Intended Audience :: Developers
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Provides-Extra: test
|
|
24
|
+
Requires-Dist: pytest; extra == "test"
|
|
25
|
+
Requires-Dist: coverage; extra == "test"
|
|
26
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
27
|
+
Requires-Dist: pytest-timeout; extra == "test"
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
30
|
+
Requires-Dist: isort; extra == "dev"
|
|
31
|
+
Requires-Dist: flake8; extra == "dev"
|
|
32
|
+
Requires-Dist: black; extra == "dev"
|
|
33
|
+
Requires-Dist: pyproject-flake8; extra == "dev"
|
|
34
|
+
Provides-Extra: benchmark
|
|
35
|
+
Requires-Dist: pytest; extra == "benchmark"
|
|
36
|
+
Requires-Dist: pytest-benchmark; extra == "benchmark"
|
|
37
|
+
Provides-Extra: doc
|
|
38
|
+
Requires-Dist: sphinx; extra == "doc"
|
|
39
|
+
Requires-Dist: sphinx_book_theme; extra == "doc"
|
|
40
|
+
Requires-Dist: myst-parser; extra == "doc"
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+
# linkify-it-py
|
|
44
|
+
|
|
45
|
+
[](https://github.com/tsutsu3/linkify-it-py/actions/workflows/github-ci.yml)
|
|
46
|
+
[](https://pypi.org/project/linkify-it-py/)
|
|
47
|
+
[](https://anaconda.org/conda-forge/linkify-it-py)
|
|
48
|
+
[](https://linkify-it-py.readthedocs.io/en/latest/?badge=latest)
|
|
49
|
+
[](https://codecov.io/gh/tsutsu3/linkify-it-py)
|
|
50
|
+
|
|
51
|
+
This is Python port of [linkify-it](https://github.com/markdown-it/linkify-it).
|
|
52
|
+
|
|
53
|
+
> Links recognition library with FULL unicode support.
|
|
54
|
+
> Focused on high quality link patterns detection in plain text.
|
|
55
|
+
|
|
56
|
+
__[Demo](https://linkify-it-py-demo.vercel.app/)__
|
|
57
|
+
|
|
58
|
+
__[Javascript Demo](http://markdown-it.github.io/linkify-it/)__
|
|
59
|
+
|
|
60
|
+
Why it's awesome:
|
|
61
|
+
|
|
62
|
+
- Full unicode support, _with astral characters_!
|
|
63
|
+
- International domains support.
|
|
64
|
+
- Allows rules extension & custom normalizers.
|
|
65
|
+
|
|
66
|
+
## Python Version Support
|
|
67
|
+
|
|
68
|
+
Tested on Python 3.10–3.14. The primary version for code coverage follows the latest
|
|
69
|
+
[security phase](https://devguide.python.org/versions/) release (currently __3.12__).
|
|
70
|
+
|
|
71
|
+
## Install
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pip install linkify-it-py
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
or
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
conda install -c conda-forge linkify-it-py
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Usage examples
|
|
84
|
+
|
|
85
|
+
### Example 1. Simple use
|
|
86
|
+
|
|
87
|
+
```python
|
|
88
|
+
from linkify_it import LinkifyIt
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
linkify = LinkifyIt()
|
|
92
|
+
|
|
93
|
+
print(linkify.test("Site github.com!"))
|
|
94
|
+
# => True
|
|
95
|
+
|
|
96
|
+
print(linkify.match("Site github.com!"))
|
|
97
|
+
# => [linkify_it.main.Match({
|
|
98
|
+
# 'schema': '',
|
|
99
|
+
# 'index': 5,
|
|
100
|
+
# 'last_index': 15,
|
|
101
|
+
# 'raw': 'github.com',
|
|
102
|
+
# 'text': 'github.com',
|
|
103
|
+
# 'url': 'http://github.com'
|
|
104
|
+
# }]
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Example 2. With options
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
from linkify_it import LinkifyIt
|
|
111
|
+
from linkify_it.tlds import TLDS
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# Reload full tlds list & add unofficial `.onion` domain.
|
|
115
|
+
linkify = (
|
|
116
|
+
LinkifyIt()
|
|
117
|
+
.tlds(TLDS) # Reload with full tlds list
|
|
118
|
+
.tlds("onion", True) # Add unofficial `.onion` domain
|
|
119
|
+
.add("git:", "http:") # Add `git:` protocol as "alias"
|
|
120
|
+
.add("ftp:", None) # Disable `ftp:` protocol
|
|
121
|
+
.set({"fuzzy_ip": True}) # Enable IPs in fuzzy links (without schema)
|
|
122
|
+
)
|
|
123
|
+
print(linkify.test("Site tamanegi.onion!"))
|
|
124
|
+
# => True
|
|
125
|
+
|
|
126
|
+
print(linkify.match("Site tamanegi.onion!"))
|
|
127
|
+
# => [linkify_it.main.Match({
|
|
128
|
+
# 'schema': '',
|
|
129
|
+
# 'index': 5,
|
|
130
|
+
# 'last_index': 19,
|
|
131
|
+
# 'raw': 'tamanegi.onion',
|
|
132
|
+
# 'text': 'tamanegi.onion',
|
|
133
|
+
# 'url': 'http://tamanegi.onion'
|
|
134
|
+
# }]
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Example 3. Add twitter mentions handler
|
|
138
|
+
|
|
139
|
+
```python
|
|
140
|
+
from linkify_it import LinkifyIt
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
linkify = LinkifyIt()
|
|
144
|
+
|
|
145
|
+
def validate(obj, text, pos):
|
|
146
|
+
tail = text[pos:]
|
|
147
|
+
|
|
148
|
+
if not obj.re.get("twitter"):
|
|
149
|
+
obj.re["twitter"] = re.compile(
|
|
150
|
+
"^([a-zA-Z0-9_]){1,15}(?!_)(?=$|" + obj.re["src_ZPCc"] + ")"
|
|
151
|
+
)
|
|
152
|
+
if obj.re["twitter"].search(tail):
|
|
153
|
+
if pos > 2 and tail[pos - 2] == "@":
|
|
154
|
+
return False
|
|
155
|
+
return len(obj.re["twitter"].search(tail).group())
|
|
156
|
+
return 0
|
|
157
|
+
|
|
158
|
+
def normalize(obj, match):
|
|
159
|
+
match.url = "https://twitter.com/" + re.sub(r"^@", "", match.url)
|
|
160
|
+
|
|
161
|
+
linkify.add("@", {"validate": validate, "normalize": normalize})
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## API
|
|
165
|
+
|
|
166
|
+
[API documentation](https://linkify-it-py.readthedocs.io/en/latest/)
|
|
167
|
+
|
|
168
|
+
### LinkifyIt(schemas, options)
|
|
169
|
+
|
|
170
|
+
Creates new linkifier instance with optional additional schemas.
|
|
171
|
+
|
|
172
|
+
By default understands:
|
|
173
|
+
|
|
174
|
+
- `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links
|
|
175
|
+
- "fuzzy" links and emails (google.com, foo@bar.com).
|
|
176
|
+
|
|
177
|
+
`schemas` is an dict, where each key/value describes protocol/rule:
|
|
178
|
+
|
|
179
|
+
- __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`
|
|
180
|
+
for example). `linkify-it-py` makes sure that prefix is not preceded with
|
|
181
|
+
alphanumeric char.
|
|
182
|
+
- __value__ - rule to check tail after link prefix
|
|
183
|
+
- _str_
|
|
184
|
+
- just alias to existing rule
|
|
185
|
+
- _dict_
|
|
186
|
+
- _validate_ - either a `re.Pattern` (start with `^`, and don't include the
|
|
187
|
+
link prefix itself), or a validator `function` which, given arguments
|
|
188
|
+
_self_, _text_ and _pos_, returns the length of a match in _text_
|
|
189
|
+
starting at index _pos_. _pos_ is the index right after the link prefix.
|
|
190
|
+
_self_ can be used to access the linkify object to cache data.
|
|
191
|
+
- _normalize_ - optional function to normalize text & url of matched result
|
|
192
|
+
(for example, for twitter mentions).
|
|
193
|
+
|
|
194
|
+
`options`:
|
|
195
|
+
|
|
196
|
+
- __fuzzy_link__ - recognize URL-s without `http(s)://` head. Default `True`.
|
|
197
|
+
- __fuzzy_ip__ - allow IPs in fuzzy links above. Can conflict with some texts
|
|
198
|
+
like version numbers. Default `False`.
|
|
199
|
+
- __fuzzy_email__ - recognize emails without `mailto:` prefix. Default `True`.
|
|
200
|
+
- __---__ - set `True` to terminate link with `---` (if it's considered as long dash).
|
|
201
|
+
|
|
202
|
+
### .test(text)
|
|
203
|
+
|
|
204
|
+
Searches linkifiable pattern and returns `True` on success or `False` on fail.
|
|
205
|
+
|
|
206
|
+
### .pretest(text)
|
|
207
|
+
|
|
208
|
+
Quick check if link MAY BE can exist. Can be used to optimize more expensive
|
|
209
|
+
`.test()` calls. Return `False` if link can not be found, `True` - if `.test()`
|
|
210
|
+
call needed to know exactly.
|
|
211
|
+
|
|
212
|
+
### .test_schema_at(text, name, position)
|
|
213
|
+
|
|
214
|
+
Similar to `.test()` but checks only specific protocol tail exactly at given
|
|
215
|
+
position. Returns length of found pattern (0 on fail).
|
|
216
|
+
|
|
217
|
+
### .match(text)
|
|
218
|
+
|
|
219
|
+
Returns `list` of found link matches or null if nothing found.
|
|
220
|
+
|
|
221
|
+
Each match has:
|
|
222
|
+
|
|
223
|
+
- __schema__ - link schema, can be empty for fuzzy links, or `//` for
|
|
224
|
+
protocol-neutral links.
|
|
225
|
+
- __index__ - offset of matched text
|
|
226
|
+
- __last_index__ - index of next char after mathch end
|
|
227
|
+
- __raw__ - matched text
|
|
228
|
+
- __text__ - normalized text
|
|
229
|
+
- __url__ - link, generated from matched text
|
|
230
|
+
|
|
231
|
+
### .matchAtStart(text)
|
|
232
|
+
|
|
233
|
+
Checks if a match exists at the start of the string. Returns `Match`
|
|
234
|
+
(see docs for `match(text)`) or null if no URL is at the start.
|
|
235
|
+
Doesn't work with fuzzy links.
|
|
236
|
+
|
|
237
|
+
### .tlds(list_tlds, keep_old=False)
|
|
238
|
+
|
|
239
|
+
Load (or merge) new tlds list. Those are needed for fuzzy links (without schema)
|
|
240
|
+
to avoid false positives. By default:
|
|
241
|
+
|
|
242
|
+
- 2-letter root zones are ok.
|
|
243
|
+
- biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф are ok.
|
|
244
|
+
- encoded (`xn--...`) root zones are ok.
|
|
245
|
+
|
|
246
|
+
If that's not enough, you can reload defaults with more detailed zones list.
|
|
247
|
+
|
|
248
|
+
### .add(key, value)
|
|
249
|
+
|
|
250
|
+
Add a new schema to the schemas object. As described in the constructor
|
|
251
|
+
definition, `key` is a link prefix (`skype:`, for example), and `value`
|
|
252
|
+
is a `str` to alias to another schema, or an `dict` with `validate` and
|
|
253
|
+
optionally `normalize` definitions. To disable an existing rule, use
|
|
254
|
+
`.add(key, None)`.
|
|
255
|
+
|
|
256
|
+
### .set(options)
|
|
257
|
+
|
|
258
|
+
Override default options. Missed properties will not be changed.
|
|
259
|
+
|
|
260
|
+
## License
|
|
261
|
+
|
|
262
|
+
[MIT](https://github.com/tsutsu3/linkify-it-py/blob/master/LICENSE)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 tsutsu3
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
===============================================================================
|
|
24
|
+
|
|
25
|
+
Original Javascript version:
|
|
26
|
+
|
|
27
|
+
Copyright (c) 2015 Vitaly Puzrin.
|
|
28
|
+
|
|
29
|
+
Permission is hereby granted, free of charge, to any person
|
|
30
|
+
obtaining a copy of this software and associated documentation
|
|
31
|
+
files (the "Software"), to deal in the Software without
|
|
32
|
+
restriction, including without limitation the rights to use,
|
|
33
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
34
|
+
copies of the Software, and to permit persons to whom the
|
|
35
|
+
Software is furnished to do so, subject to the following
|
|
36
|
+
conditions:
|
|
37
|
+
|
|
38
|
+
The above copyright notice and this permission notice shall be
|
|
39
|
+
included in all copies or substantial portions of the Software.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
42
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
43
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
44
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
45
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
46
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
47
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
48
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: markdown-it-py
|
|
3
|
+
Version: 4.3.0
|
|
4
|
+
Summary: Python port of markdown-it. Markdown parsing, done right!
|
|
5
|
+
Keywords: markdown,lexer,parser,commonmark,markdown-it
|
|
6
|
+
Author-email: Chris Sewell <chrisj_sewell@hotmail.com>
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
18
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
19
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Classifier: Topic :: Text Processing :: Markup
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
License-File: LICENSE.markdown-it
|
|
24
|
+
Requires-Dist: mdurl~=0.1
|
|
25
|
+
Requires-Dist: psutil ; extra == "benchmarking"
|
|
26
|
+
Requires-Dist: pytest ; extra == "benchmarking"
|
|
27
|
+
Requires-Dist: pytest-benchmark ; extra == "benchmarking"
|
|
28
|
+
Requires-Dist: markdown~=3.4 ; extra == "compare"
|
|
29
|
+
Requires-Dist: mistletoe~=1.0 ; extra == "compare"
|
|
30
|
+
Requires-Dist: mistune~=3.0 ; extra == "compare"
|
|
31
|
+
Requires-Dist: panflute~=2.3 ; extra == "compare"
|
|
32
|
+
Requires-Dist: markdown-it-pyrs ; extra == "compare"
|
|
33
|
+
Requires-Dist: coverage ; extra == "coverage"
|
|
34
|
+
Requires-Dist: pytest-cov ; extra == "coverage"
|
|
35
|
+
Requires-Dist: linkify-it-py>=1,<3 ; extra == "linkify"
|
|
36
|
+
Requires-Dist: mdit-py-plugins>=0.5.0 ; extra == "plugins"
|
|
37
|
+
Requires-Dist: gprof2dot ; extra == "profiling"
|
|
38
|
+
Requires-Dist: mdit-py-plugins>=0.5.0 ; extra == "rtd"
|
|
39
|
+
Requires-Dist: myst-parser ; extra == "rtd"
|
|
40
|
+
Requires-Dist: pyyaml ; extra == "rtd"
|
|
41
|
+
Requires-Dist: sphinx ; extra == "rtd"
|
|
42
|
+
Requires-Dist: sphinx-copybutton ; extra == "rtd"
|
|
43
|
+
Requires-Dist: sphinx-design ; extra == "rtd"
|
|
44
|
+
Requires-Dist: sphinx-book-theme~=1.0 ; extra == "rtd"
|
|
45
|
+
Requires-Dist: jupyter_sphinx ; extra == "rtd"
|
|
46
|
+
Requires-Dist: ipykernel ; extra == "rtd"
|
|
47
|
+
Requires-Dist: flit_core>=3.4,<5 ; extra == "testing"
|
|
48
|
+
Requires-Dist: pytest ; extra == "testing"
|
|
49
|
+
Requires-Dist: pytest-regressions ; extra == "testing"
|
|
50
|
+
Requires-Dist: pytest-timeout ; extra == "testing"
|
|
51
|
+
Requires-Dist: requests ; extra == "testing"
|
|
52
|
+
Project-URL: Documentation, https://markdown-it-py.readthedocs.io
|
|
53
|
+
Project-URL: Homepage, https://github.com/executablebooks/markdown-it-py
|
|
54
|
+
Provides-Extra: benchmarking
|
|
55
|
+
Provides-Extra: compare
|
|
56
|
+
Provides-Extra: coverage
|
|
57
|
+
Provides-Extra: linkify
|
|
58
|
+
Provides-Extra: plugins
|
|
59
|
+
Provides-Extra: profiling
|
|
60
|
+
Provides-Extra: rtd
|
|
61
|
+
Provides-Extra: testing
|
|
62
|
+
Import-Name: markdown_it
|
|
63
|
+
|
|
64
|
+
# markdown-it-py
|
|
65
|
+
|
|
66
|
+
[![Github-CI][github-ci]][github-link]
|
|
67
|
+
[![Coverage Status][codecov-badge]][codecov-link]
|
|
68
|
+
[![PyPI][pypi-badge]][pypi-link]
|
|
69
|
+
[![Conda][conda-badge]][conda-link]
|
|
70
|
+
[![PyPI - Downloads][install-badge]][install-link]
|
|
71
|
+
|
|
72
|
+
<p align="center">
|
|
73
|
+
<img alt="markdown-it-py icon" src="https://raw.githubusercontent.com/executablebooks/markdown-it-py/master/docs/_static/markdown-it-py.svg">
|
|
74
|
+
</p>
|
|
75
|
+
|
|
76
|
+
> Markdown parser done right.
|
|
77
|
+
|
|
78
|
+
- Follows the __[CommonMark spec](http://spec.commonmark.org/)__ for baseline parsing
|
|
79
|
+
- Configurable syntax: you can add new rules and even replace existing ones.
|
|
80
|
+
- Pluggable: Adds syntax extensions to extend the parser (see the [plugin list][md-plugins]).
|
|
81
|
+
- High speed (see our [benchmarking tests][md-performance])
|
|
82
|
+
- Easy to configure for [security][md-security]
|
|
83
|
+
- Member of [Google's Assured Open Source Software](https://cloud.google.com/assured-open-source-software/docs/supported-packages)
|
|
84
|
+
|
|
85
|
+
This is a Python port of [markdown-it], and some of its associated plugins.
|
|
86
|
+
For more details see: <https://markdown-it-py.readthedocs.io>.
|
|
87
|
+
|
|
88
|
+
For details on [markdown-it] itself, see:
|
|
89
|
+
|
|
90
|
+
- The __[Live demo](https://markdown-it.github.io)__
|
|
91
|
+
- [The markdown-it README][markdown-it-readme]
|
|
92
|
+
|
|
93
|
+
**See also:** [markdown-it-pyrs](https://github.com/chrisjsewell/markdown-it-pyrs) for an experimental Rust binding,
|
|
94
|
+
for even more speed!
|
|
95
|
+
|
|
96
|
+
## Installation
|
|
97
|
+
|
|
98
|
+
### PIP
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
pip install markdown-it-py[plugins]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
or with extras
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
pip install markdown-it-py[linkify,plugins]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Conda
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
conda install -c conda-forge markdown-it-py
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
or with extras
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
conda install -c conda-forge markdown-it-py linkify-it-py mdit-py-plugins
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Usage
|
|
123
|
+
|
|
124
|
+
### Python API Usage
|
|
125
|
+
|
|
126
|
+
Render markdown to HTML with markdown-it-py and a custom configuration
|
|
127
|
+
with and without plugins and features:
|
|
128
|
+
|
|
129
|
+
```python
|
|
130
|
+
from markdown_it import MarkdownIt
|
|
131
|
+
from mdit_py_plugins.front_matter import front_matter_plugin
|
|
132
|
+
from mdit_py_plugins.footnote import footnote_plugin
|
|
133
|
+
|
|
134
|
+
md = (
|
|
135
|
+
MarkdownIt("commonmark", {"breaks": True, "html": True})
|
|
136
|
+
.use(front_matter_plugin)
|
|
137
|
+
.use(footnote_plugin)
|
|
138
|
+
.enable("table")
|
|
139
|
+
)
|
|
140
|
+
text = """
|
|
141
|
+
---
|
|
142
|
+
a: 1
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
a | b
|
|
146
|
+
- | -
|
|
147
|
+
1 | 2
|
|
148
|
+
|
|
149
|
+
A footnote [^1]
|
|
150
|
+
|
|
151
|
+
[^1]: some details
|
|
152
|
+
"""
|
|
153
|
+
tokens = md.parse(text)
|
|
154
|
+
html_text = md.render(text)
|
|
155
|
+
|
|
156
|
+
## To export the html to a file, uncomment the lines below:
|
|
157
|
+
# from pathlib import Path
|
|
158
|
+
# Path("output.html").write_text(html_text)
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Command-line Usage
|
|
162
|
+
|
|
163
|
+
Render markdown to HTML with markdown-it-py from the
|
|
164
|
+
command-line:
|
|
165
|
+
|
|
166
|
+
```console
|
|
167
|
+
usage: markdown-it [-h] [-v] [--stdin] [--enable-tables] [filenames ...]
|
|
168
|
+
|
|
169
|
+
Parse one or more markdown files, convert each to HTML, and print to stdout
|
|
170
|
+
|
|
171
|
+
positional arguments:
|
|
172
|
+
filenames specify an optional list of files to convert
|
|
173
|
+
|
|
174
|
+
options:
|
|
175
|
+
-h, --help show this help message and exit
|
|
176
|
+
-v, --version show program's version number and exit
|
|
177
|
+
--stdin read Markdown from standard input
|
|
178
|
+
--enable-tables enable table parsing
|
|
179
|
+
|
|
180
|
+
Interactive:
|
|
181
|
+
|
|
182
|
+
$ markdown-it
|
|
183
|
+
markdown-it-py [version 0.0.0] (interactive)
|
|
184
|
+
Type Ctrl-D to complete input, or Ctrl-C to exit.
|
|
185
|
+
>>> # Example
|
|
186
|
+
... > markdown *input*
|
|
187
|
+
...
|
|
188
|
+
<h1>Example</h1>
|
|
189
|
+
<blockquote>
|
|
190
|
+
<p>markdown <em>input</em></p>
|
|
191
|
+
</blockquote>
|
|
192
|
+
|
|
193
|
+
Batch:
|
|
194
|
+
|
|
195
|
+
$ markdown-it README.md README.footer.md > index.html
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
In interactive mode, end each input with Ctrl-D,
|
|
200
|
+
or on Windows with Ctrl-Z then Enter (the prompt names the keys for your platform).
|
|
201
|
+
|
|
202
|
+
Tables are disabled by default, as in CommonMark.
|
|
203
|
+
Use `--enable-tables` with any input mode to enable them:
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
markdown-it --enable-tables README.md > index.html
|
|
207
|
+
markdown-it --enable-tables --stdin < README.md > index.html
|
|
208
|
+
markdown-it --enable-tables
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## References / Thanks
|
|
212
|
+
|
|
213
|
+
Big thanks to the authors of [markdown-it]:
|
|
214
|
+
|
|
215
|
+
- Alex Kocharin [github/rlidwka](https://github.com/rlidwka)
|
|
216
|
+
- Vitaly Puzrin [github/puzrin](https://github.com/puzrin)
|
|
217
|
+
|
|
218
|
+
Also [John MacFarlane](https://github.com/jgm) for his work on the CommonMark spec and reference implementations.
|
|
219
|
+
|
|
220
|
+
[github-ci]: https://github.com/executablebooks/markdown-it-py/actions/workflows/tests.yml/badge.svg?branch=master
|
|
221
|
+
[github-link]: https://github.com/executablebooks/markdown-it-py
|
|
222
|
+
[pypi-badge]: https://img.shields.io/pypi/v/markdown-it-py.svg
|
|
223
|
+
[pypi-link]: https://pypi.org/project/markdown-it-py
|
|
224
|
+
[conda-badge]: https://anaconda.org/conda-forge/markdown-it-py/badges/version.svg
|
|
225
|
+
[conda-link]: https://anaconda.org/conda-forge/markdown-it-py
|
|
226
|
+
[codecov-badge]: https://codecov.io/gh/executablebooks/markdown-it-py/branch/master/graph/badge.svg
|
|
227
|
+
[codecov-link]: https://codecov.io/gh/executablebooks/markdown-it-py
|
|
228
|
+
[install-badge]: https://img.shields.io/pypi/dw/markdown-it-py?label=pypi%20installs
|
|
229
|
+
[install-link]: https://pypistats.org/packages/markdown-it-py
|
|
230
|
+
|
|
231
|
+
[CommonMark spec]: http://spec.commonmark.org/
|
|
232
|
+
[markdown-it]: https://github.com/markdown-it/markdown-it
|
|
233
|
+
[markdown-it-readme]: https://github.com/markdown-it/markdown-it/blob/master/README.md
|
|
234
|
+
[md-security]: https://markdown-it-py.readthedocs.io/en/latest/security.html
|
|
235
|
+
[md-performance]: https://markdown-it-py.readthedocs.io/en/latest/performance.html
|
|
236
|
+
[md-plugins]: https://markdown-it-py.readthedocs.io/en/latest/plugins.html
|
|
237
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 ExecutableBookProject
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/payload/THIRD_PARTY_NOTICES/markdown_it_py-4.3.0.dist-info/licenses/LICENSE.markdown-it
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2014 Vitaly Puzrin, Alex Kocharin.
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|