Ai
5 Star 0 Fork 5

src-openEuler/python-mistletoe
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-mistletoe.spec 3.51 KB
一键复制 编辑 原始数据 按行查看 历史
李月 提交于 2025-10-21 20:19 +08:00 . Update package to version 1.5.0
# Created by pyp2rpm-3.2.2
%global pypi_name mistletoe
Name: python-%{pypi_name}
Version: 1.5.0
Release: 1
Summary: A fast, extensible Markdown parser in pure Python
License: MIT
URL: https://github.com/miyuchina/mistletoe
Source0: https://files.pythonhosted.org/packages/source/m/mistletoe/mistletoe-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
mistletoe is a Markdown parser in pure Python, designed to be fast, spec-compliant and fully customizable.
Apart from being the fastest CommonMark-compliant Markdown parser implementation in pure Python, mistletoe
also supports easy definitions of custom tokens. Parsing Markdown into an abstract syntax tree also allows
us to swap out renderers for different output formats, without touching any of the core components.
Remember to spell mistletoe in lowercase!
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3-setuptools
%description -n python3-%{pypi_name}
mistletoe is a Markdown parser in pure Python, designed to be fast, spec-compliant and fully customizable.
Apart from being the fastest CommonMark-compliant Markdown parser implementation in pure Python, mistletoe
also supports easy definitions of custom tokens. Parsing Markdown into an abstract syntax tree also allows
us to swap out renderers for different output formats, without touching any of the core components.
Remember to spell mistletoe in lowercase!
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
cp %{buildroot}/%{_bindir}/mistletoe %{buildroot}/%{_bindir}/mistletoe-%{python3_version}
ln -s %{_bindir}/mistletoe-%{python3_version} %{buildroot}/%{_bindir}/mistletoe-3
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{_bindir}/mistletoe
%{_bindir}/mistletoe-3
%{_bindir}/mistletoe-%{python3_version}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info
%changelog
* Tue Oct 21 2025 liyue <liyue01@kylinos.cn> - 1.5.0-1
- Update package to version 1.5.0
- Fix LaTeXRenderer now renders thematic breaks on a new line
- Fix properly escape caret ("^") in raw text for LaTeX output
- Fix complete tox and test configuration to enable proper testing
- Add type hints to markdown() function in __init__.py
- Fix typos and improve documentation in docstrings and docs
- Clarify Document constructor and end-of-line handling
* Wed Oct 30 2024 liudy <liudingyao@kylinos.cn> - 1.4.0-1
- Update version to 1.4.0
- Keep the original content spacing before the list marker
- Bump build/CI scripts
* Thu Jun 13 2024 liyue <liyue01@kylinos.cn> - 1.3.0-1
- Update package to version 1.3.0
- Add line numbers on all block tokens during parsing
- fix inline mathjax handling
- record indentation on list item to make Markdown renderer be able to render list markers followed by 1~4 spaces.
- Fix penultimate sections of multiline fragments being ignored by the Markdown renderer
- option to normalize spacing after the list marker
* Mon Apr 08 2024 zhaojingyu <zhaojingyu@kylinos.cn> - 1.2.0-1
- Update package to version 1.2.0
- fix Escape special characters in URLs of generated links, PygmentsRenderer no longer throws a ClassNotFound error if there is a code language specified which is not supported by the Pygments highlighter.
* Thu Aug 17 2023 ysliu <ysliuci@isoftstone.com> - 1.1.0-1
- Initial package.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-mistletoe.git
git@gitee.com:src-openeuler/python-mistletoe.git
src-openeuler
python-mistletoe
python-mistletoe
master

搜索帮助