summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 07:22:20 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 07:22:20 +0000
commit06a1d203c307987ed54067063e9b7a0db765bd7a (patch)
tree7fc8572af234efe7f0848a8c12a4d9712f035b43
parent5cbffb74fbb62d2824fd4272204dc2c01310c474 (diff)
automatic import of python-mdx-truly-sane-lists
-rw-r--r--.gitignore1
-rw-r--r--python-mdx-truly-sane-lists.spec496
-rw-r--r--sources1
3 files changed, 498 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ccf24a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mdx_truly_sane_lists-1.3.tar.gz
diff --git a/python-mdx-truly-sane-lists.spec b/python-mdx-truly-sane-lists.spec
new file mode 100644
index 0000000..00d52fe
--- /dev/null
+++ b/python-mdx-truly-sane-lists.spec
@@ -0,0 +1,496 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mdx-truly-sane-lists
+Version: 1.3
+Release: 1
+Summary: Extension for Python-Markdown that makes lists truly sane. Custom indents for nested lists and fix for messy linebreaks.
+License: MIT
+URL: https://github.com/radude/mdx_truly_sane_lists
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e6/27/16456314311abac2cedef4527679924e80ac4de19dd926699c1b261e0b9b/mdx_truly_sane_lists-1.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-Markdown
+
+%description
+# Mdx Truly Sane Lists
+
+[![Build Status](https://travis-ci.org/radude/mdx_truly_sane_lists.svg?branch=master)](https://travis-ci.org/radude/mdx_truly_sane_lists)
+
+
+An extension for [Python-Markdown](https://github.com/Python-Markdown/markdown) that makes lists truly sane. Features custom indents for nested lists and fix for messy linebreaks and paragraphs between lists.
+
+
+## Features
+
+* `nested_indent` option: Custom indent for nested lists. Defaults to `2`. Doesn't mess with code indents, which is still 4.
+
+* `truly_sane` option: Makes linebreaks and paragraphs in lists behave as usually expected by user. No longer adds weird `p`, no extra linebreaks, no longer fuses lists together when they shouldn't be fused (see screenshots and examples below). Defaults to `True`.
+
+* Inherits [sane lists](https://python-markdown.github.io/extensions/sane_lists/) behavior, which doesn't allow the mixing of ordered and unordered lists.
+
+
+## Installation
+
+##### [Pypi](https://pypi.python.org/pypi/mdx-truly-sane-lists):
+
+```console
+pip3 install mdx_truly_sane_lists
+```
+
+##### Directly from git:
+
+```console
+pip3 install git+git://github.com/radude/mdx_truly_sane_lists
+```
+
+## Usage
+
+Basic:
+
+```python
+from markdown import markdown
+
+# Default config is truly_sane: True, nested_indent: 2
+markdown(text='some text', extensions=['mdx_truly_sane_lists'])
+```
+
+With explicit config:
+
+```python
+from markdown import markdown
+
+markdown(text='some text',
+ extensions=[
+ 'mdx_truly_sane_lists',
+ ],
+ extension_configs={
+ 'mdx_truly_sane_lists': {
+ 'nested_indent': 2,
+ 'truly_sane': True,
+ }},
+ )
+```
+
+## Screenshots and examples
+
+You can preview the new behaviour live at [rentry.co](https://rentry.co/) (uses `nested_indent: 2, truly_sane: True`)
+
+
+Some ugly screenshots because I'm lazy and cannot into gimp:
+
+![](https://i.imgur.com/7l2bWLY.png)
+![](https://i.imgur.com/Ruwfb2A.png)
+
+## HTML
+
+Data:
+```markdown
+- attributes
+
+- customer
+ - first_name
+ - family_name
+ - email
+- person
+ - first_name
+ - family_name
+ - birth_date
+- subscription_id
+
+- request
+```
+
+No extension:
+```html before
+<ul>
+<li>
+<p>attributes</p>
+</li>
+<li>
+<p>customer </p>
+<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>email</li>
+</ul>
+</li>
+<li>person<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>birth_date</li>
+</ul>
+</li>
+<li>
+<p>subscription_id</p>
+</li>
+<li>
+<p>request</p>
+</li>
+</ul>
+```
+
+Truly sane + 4 spaces:
+```html
+<ul>
+<li>attributes</li>
+</ul>
+<ul>
+<li>customer <ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>email</li>
+</ul>
+</li>
+<li>person<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>birth_date</li>
+</ul>
+</li>
+<li>subscription_id</li>
+</ul>
+<ul>
+<li>request</li>
+</ul>
+```
+
+
+%package -n python3-mdx-truly-sane-lists
+Summary: Extension for Python-Markdown that makes lists truly sane. Custom indents for nested lists and fix for messy linebreaks.
+Provides: python-mdx-truly-sane-lists
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mdx-truly-sane-lists
+# Mdx Truly Sane Lists
+
+[![Build Status](https://travis-ci.org/radude/mdx_truly_sane_lists.svg?branch=master)](https://travis-ci.org/radude/mdx_truly_sane_lists)
+
+
+An extension for [Python-Markdown](https://github.com/Python-Markdown/markdown) that makes lists truly sane. Features custom indents for nested lists and fix for messy linebreaks and paragraphs between lists.
+
+
+## Features
+
+* `nested_indent` option: Custom indent for nested lists. Defaults to `2`. Doesn't mess with code indents, which is still 4.
+
+* `truly_sane` option: Makes linebreaks and paragraphs in lists behave as usually expected by user. No longer adds weird `p`, no extra linebreaks, no longer fuses lists together when they shouldn't be fused (see screenshots and examples below). Defaults to `True`.
+
+* Inherits [sane lists](https://python-markdown.github.io/extensions/sane_lists/) behavior, which doesn't allow the mixing of ordered and unordered lists.
+
+
+## Installation
+
+##### [Pypi](https://pypi.python.org/pypi/mdx-truly-sane-lists):
+
+```console
+pip3 install mdx_truly_sane_lists
+```
+
+##### Directly from git:
+
+```console
+pip3 install git+git://github.com/radude/mdx_truly_sane_lists
+```
+
+## Usage
+
+Basic:
+
+```python
+from markdown import markdown
+
+# Default config is truly_sane: True, nested_indent: 2
+markdown(text='some text', extensions=['mdx_truly_sane_lists'])
+```
+
+With explicit config:
+
+```python
+from markdown import markdown
+
+markdown(text='some text',
+ extensions=[
+ 'mdx_truly_sane_lists',
+ ],
+ extension_configs={
+ 'mdx_truly_sane_lists': {
+ 'nested_indent': 2,
+ 'truly_sane': True,
+ }},
+ )
+```
+
+## Screenshots and examples
+
+You can preview the new behaviour live at [rentry.co](https://rentry.co/) (uses `nested_indent: 2, truly_sane: True`)
+
+
+Some ugly screenshots because I'm lazy and cannot into gimp:
+
+![](https://i.imgur.com/7l2bWLY.png)
+![](https://i.imgur.com/Ruwfb2A.png)
+
+## HTML
+
+Data:
+```markdown
+- attributes
+
+- customer
+ - first_name
+ - family_name
+ - email
+- person
+ - first_name
+ - family_name
+ - birth_date
+- subscription_id
+
+- request
+```
+
+No extension:
+```html before
+<ul>
+<li>
+<p>attributes</p>
+</li>
+<li>
+<p>customer </p>
+<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>email</li>
+</ul>
+</li>
+<li>person<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>birth_date</li>
+</ul>
+</li>
+<li>
+<p>subscription_id</p>
+</li>
+<li>
+<p>request</p>
+</li>
+</ul>
+```
+
+Truly sane + 4 spaces:
+```html
+<ul>
+<li>attributes</li>
+</ul>
+<ul>
+<li>customer <ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>email</li>
+</ul>
+</li>
+<li>person<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>birth_date</li>
+</ul>
+</li>
+<li>subscription_id</li>
+</ul>
+<ul>
+<li>request</li>
+</ul>
+```
+
+
+%package help
+Summary: Development documents and examples for mdx-truly-sane-lists
+Provides: python3-mdx-truly-sane-lists-doc
+%description help
+# Mdx Truly Sane Lists
+
+[![Build Status](https://travis-ci.org/radude/mdx_truly_sane_lists.svg?branch=master)](https://travis-ci.org/radude/mdx_truly_sane_lists)
+
+
+An extension for [Python-Markdown](https://github.com/Python-Markdown/markdown) that makes lists truly sane. Features custom indents for nested lists and fix for messy linebreaks and paragraphs between lists.
+
+
+## Features
+
+* `nested_indent` option: Custom indent for nested lists. Defaults to `2`. Doesn't mess with code indents, which is still 4.
+
+* `truly_sane` option: Makes linebreaks and paragraphs in lists behave as usually expected by user. No longer adds weird `p`, no extra linebreaks, no longer fuses lists together when they shouldn't be fused (see screenshots and examples below). Defaults to `True`.
+
+* Inherits [sane lists](https://python-markdown.github.io/extensions/sane_lists/) behavior, which doesn't allow the mixing of ordered and unordered lists.
+
+
+## Installation
+
+##### [Pypi](https://pypi.python.org/pypi/mdx-truly-sane-lists):
+
+```console
+pip3 install mdx_truly_sane_lists
+```
+
+##### Directly from git:
+
+```console
+pip3 install git+git://github.com/radude/mdx_truly_sane_lists
+```
+
+## Usage
+
+Basic:
+
+```python
+from markdown import markdown
+
+# Default config is truly_sane: True, nested_indent: 2
+markdown(text='some text', extensions=['mdx_truly_sane_lists'])
+```
+
+With explicit config:
+
+```python
+from markdown import markdown
+
+markdown(text='some text',
+ extensions=[
+ 'mdx_truly_sane_lists',
+ ],
+ extension_configs={
+ 'mdx_truly_sane_lists': {
+ 'nested_indent': 2,
+ 'truly_sane': True,
+ }},
+ )
+```
+
+## Screenshots and examples
+
+You can preview the new behaviour live at [rentry.co](https://rentry.co/) (uses `nested_indent: 2, truly_sane: True`)
+
+
+Some ugly screenshots because I'm lazy and cannot into gimp:
+
+![](https://i.imgur.com/7l2bWLY.png)
+![](https://i.imgur.com/Ruwfb2A.png)
+
+## HTML
+
+Data:
+```markdown
+- attributes
+
+- customer
+ - first_name
+ - family_name
+ - email
+- person
+ - first_name
+ - family_name
+ - birth_date
+- subscription_id
+
+- request
+```
+
+No extension:
+```html before
+<ul>
+<li>
+<p>attributes</p>
+</li>
+<li>
+<p>customer </p>
+<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>email</li>
+</ul>
+</li>
+<li>person<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>birth_date</li>
+</ul>
+</li>
+<li>
+<p>subscription_id</p>
+</li>
+<li>
+<p>request</p>
+</li>
+</ul>
+```
+
+Truly sane + 4 spaces:
+```html
+<ul>
+<li>attributes</li>
+</ul>
+<ul>
+<li>customer <ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>email</li>
+</ul>
+</li>
+<li>person<ul>
+<li>first_name</li>
+<li>family_name</li>
+<li>birth_date</li>
+</ul>
+</li>
+<li>subscription_id</li>
+</ul>
+<ul>
+<li>request</li>
+</ul>
+```
+
+
+%prep
+%autosetup -n mdx-truly-sane-lists-1.3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-mdx-truly-sane-lists -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8cc1d2a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+edd71d5f62504b02f081d9c1c8249b77 mdx_truly_sane_lists-1.3.tar.gz