xhtmlmd 0.1.3__tar.gz
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.
- xhtmlmd-0.1.3/.github/workflows/ci.yml +90 -0
- xhtmlmd-0.1.3/.gitignore +156 -0
- xhtmlmd-0.1.3/Cargo.lock +562 -0
- xhtmlmd-0.1.3/Cargo.toml +36 -0
- xhtmlmd-0.1.3/DEV.md +52 -0
- xhtmlmd-0.1.3/PKG-INFO +137 -0
- xhtmlmd-0.1.3/README.md +115 -0
- xhtmlmd-0.1.3/docs/DIALECT.md +12 -0
- xhtmlmd-0.1.3/docs/sample.html +221 -0
- xhtmlmd-0.1.3/docs/sample.md +279 -0
- xhtmlmd-0.1.3/examples/demo.md +8 -0
- xhtmlmd-0.1.3/nbs/examples.ipynb +340 -0
- xhtmlmd-0.1.3/pyproject.toml +40 -0
- xhtmlmd-0.1.3/python/xhtmlmd/__init__.py +13 -0
- xhtmlmd-0.1.3/python/xhtmlmd.data/scripts/.gitkeep +1 -0
- xhtmlmd-0.1.3/src/ast.rs +285 -0
- xhtmlmd-0.1.3/src/attrs.rs +486 -0
- xhtmlmd-0.1.3/src/block.rs +3199 -0
- xhtmlmd-0.1.3/src/entity.rs +52 -0
- xhtmlmd-0.1.3/src/inline.rs +1729 -0
- xhtmlmd-0.1.3/src/lib.rs +55 -0
- xhtmlmd-0.1.3/src/line.rs +128 -0
- xhtmlmd-0.1.3/src/main.rs +44 -0
- xhtmlmd-0.1.3/src/python.rs +414 -0
- xhtmlmd-0.1.3/src/render.rs +618 -0
- xhtmlmd-0.1.3/src/tagfilter.rs +53 -0
- xhtmlmd-0.1.3/tests/conformance.rs +498 -0
- xhtmlmd-0.1.3/tests/fixtures/dialect.md +32 -0
- xhtmlmd-0.1.3/tests/fixtures/dialect.xhtml +37 -0
- xhtmlmd-0.1.3/tests/focused.rs +63 -0
- xhtmlmd-0.1.3/tests/pathological.rs +101 -0
- xhtmlmd-0.1.3/tests/source/cmark-gfm/README.md +8 -0
- xhtmlmd-0.1.3/tests/source/cmark-gfm/extensions.txt +920 -0
- xhtmlmd-0.1.3/tests/source/cmark-gfm/spec.txt +10201 -0
- xhtmlmd-0.1.3/tests/source/kramdown.txt +44 -0
- xhtmlmd-0.1.3/tests/source/markdowntests.md +155 -0
- xhtmlmd-0.1.3/tests/source/mf.txt +388 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Abbr.text +31 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Abbr.xhtml +15 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Backtick Fenced Code Blocks Special Cases.text +64 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Backtick Fenced Code Blocks Special Cases.xhtml +55 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Backtick Fenced Code Blocks.text +123 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Backtick Fenced Code Blocks.xhtml +111 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Definition Lists.text +115 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Definition Lists.xhtml +155 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Emphasis.text +100 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Emphasis.xhtml +106 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Footnotes.text +70 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Footnotes.xhtml +2 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Headers with attributes.text +41 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Headers with attributes.xhtml +37 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Inline HTML with Markdown content.text +110 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Inline HTML with Markdown content.xhtml +131 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Link & Image Attributes.text +10 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Link & Image Attributes.xhtml +8 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Tables.text +103 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Tables.xhtml +310 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Tilde Fenced Code Blocks Special Cases.text +64 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Tilde Fenced Code Blocks Special Cases.xhtml +55 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Tilde Fenced Code Blocks.text +123 -0
- xhtmlmd-0.1.3/tests/source/php-markdown-extra.mdtest/Tilde Fenced Code Blocks.xhtml +111 -0
- xhtmlmd-0.1.3/tests/test_python.py +104 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
tags: ['v*']
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
15
|
+
- uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: '3.12'
|
|
18
|
+
- run: pip install -e '.[dev]'
|
|
19
|
+
- run: ship-rs-test
|
|
20
|
+
|
|
21
|
+
linux:
|
|
22
|
+
needs: test
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
27
|
+
- uses: PyO3/maturin-action@v1
|
|
28
|
+
with:
|
|
29
|
+
args: --release --out dist -i python3.10 -i python3.11 -i python3.12 -i python3.13
|
|
30
|
+
manylinux: auto
|
|
31
|
+
before-script-linux: |
|
|
32
|
+
python3.13 -m pip install 'fastship>=0.0.14'
|
|
33
|
+
python3.13 -m fastship.rs_prep --release
|
|
34
|
+
- uses: actions/upload-artifact@v4
|
|
35
|
+
with:
|
|
36
|
+
name: wheels-linux
|
|
37
|
+
path: dist
|
|
38
|
+
|
|
39
|
+
macos:
|
|
40
|
+
needs: test
|
|
41
|
+
runs-on: macos-latest
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v4
|
|
44
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
45
|
+
- uses: actions/setup-python@v5
|
|
46
|
+
with:
|
|
47
|
+
python-version: '3.13'
|
|
48
|
+
- run: python -m pip install 'fastship>=0.0.14'
|
|
49
|
+
- run: python -m fastship.rs_prep --release
|
|
50
|
+
- uses: PyO3/maturin-action@v1
|
|
51
|
+
with:
|
|
52
|
+
args: --release --out dist -i python3.10 -i python3.11 -i python3.12 -i python3.13
|
|
53
|
+
- uses: actions/upload-artifact@v4
|
|
54
|
+
with:
|
|
55
|
+
name: wheels-macos
|
|
56
|
+
path: dist
|
|
57
|
+
|
|
58
|
+
sdist:
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
steps:
|
|
61
|
+
- uses: actions/checkout@v4
|
|
62
|
+
- uses: PyO3/maturin-action@v1
|
|
63
|
+
with:
|
|
64
|
+
command: sdist
|
|
65
|
+
args: -o dist
|
|
66
|
+
- uses: actions/upload-artifact@v4
|
|
67
|
+
with:
|
|
68
|
+
name: wheels-sdist
|
|
69
|
+
path: dist
|
|
70
|
+
|
|
71
|
+
publish:
|
|
72
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
73
|
+
needs: [linux, macos, sdist]
|
|
74
|
+
runs-on: ubuntu-latest
|
|
75
|
+
permissions:
|
|
76
|
+
id-token: write
|
|
77
|
+
contents: write
|
|
78
|
+
steps:
|
|
79
|
+
- uses: actions/checkout@v4
|
|
80
|
+
- uses: actions/download-artifact@v4
|
|
81
|
+
with:
|
|
82
|
+
path: dist
|
|
83
|
+
merge-multiple: true
|
|
84
|
+
- uses: softprops/action-gh-release@v2
|
|
85
|
+
with:
|
|
86
|
+
files: dist/*
|
|
87
|
+
generate_release_notes: true
|
|
88
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
89
|
+
with:
|
|
90
|
+
packages-dir: dist/
|
xhtmlmd-0.1.3/.gitignore
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
meta/
|
|
2
|
+
Cargo.lock
|
|
3
|
+
|
|
4
|
+
*.db-*
|
|
5
|
+
*.db
|
|
6
|
+
.gitattributes
|
|
7
|
+
_proc/
|
|
8
|
+
sidebar.yml
|
|
9
|
+
Gemfile.lock
|
|
10
|
+
token
|
|
11
|
+
_docs/
|
|
12
|
+
conda/
|
|
13
|
+
.last_checked
|
|
14
|
+
.gitconfig
|
|
15
|
+
*.bak
|
|
16
|
+
*.log
|
|
17
|
+
*~
|
|
18
|
+
~*
|
|
19
|
+
_tmp*
|
|
20
|
+
tmp*
|
|
21
|
+
tags
|
|
22
|
+
|
|
23
|
+
# Byte-compiled / optimized / DLL files
|
|
24
|
+
__pycache__/
|
|
25
|
+
*.py[cod]
|
|
26
|
+
*$py.class
|
|
27
|
+
|
|
28
|
+
# C extensions
|
|
29
|
+
*.so
|
|
30
|
+
|
|
31
|
+
# Distribution / packaging
|
|
32
|
+
.Python
|
|
33
|
+
env/
|
|
34
|
+
build/
|
|
35
|
+
develop-eggs/
|
|
36
|
+
dist/
|
|
37
|
+
downloads/
|
|
38
|
+
eggs/
|
|
39
|
+
.eggs/
|
|
40
|
+
lib/
|
|
41
|
+
lib64/
|
|
42
|
+
parts/
|
|
43
|
+
sdist/
|
|
44
|
+
var/
|
|
45
|
+
wheels/
|
|
46
|
+
*.egg-info/
|
|
47
|
+
.installed.cfg
|
|
48
|
+
*.egg
|
|
49
|
+
|
|
50
|
+
# PyInstaller
|
|
51
|
+
# Usually these files are written by a python script from a template
|
|
52
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
53
|
+
*.manifest
|
|
54
|
+
*.spec
|
|
55
|
+
|
|
56
|
+
# Installer logs
|
|
57
|
+
pip-log.txt
|
|
58
|
+
pip-delete-this-directory.txt
|
|
59
|
+
|
|
60
|
+
# Unit test / coverage reports
|
|
61
|
+
htmlcov/
|
|
62
|
+
.tox/
|
|
63
|
+
.coverage
|
|
64
|
+
.coverage.*
|
|
65
|
+
.cache
|
|
66
|
+
nosetests.xml
|
|
67
|
+
coverage.xml
|
|
68
|
+
*.cover
|
|
69
|
+
.hypothesis/
|
|
70
|
+
|
|
71
|
+
# Translations
|
|
72
|
+
*.mo
|
|
73
|
+
*.pot
|
|
74
|
+
|
|
75
|
+
# Django stuff:
|
|
76
|
+
*.log
|
|
77
|
+
local_settings.py
|
|
78
|
+
|
|
79
|
+
# Flask stuff:
|
|
80
|
+
instance/
|
|
81
|
+
.webassets-cache
|
|
82
|
+
|
|
83
|
+
# Scrapy stuff:
|
|
84
|
+
.scrapy
|
|
85
|
+
|
|
86
|
+
# Sphinx documentation
|
|
87
|
+
docs/_build/
|
|
88
|
+
|
|
89
|
+
# PyBuilder
|
|
90
|
+
target/
|
|
91
|
+
|
|
92
|
+
# Jupyter Notebook
|
|
93
|
+
.ipynb_checkpoints
|
|
94
|
+
|
|
95
|
+
# pyenv
|
|
96
|
+
.python-version
|
|
97
|
+
|
|
98
|
+
# celery beat schedule file
|
|
99
|
+
celerybeat-schedule
|
|
100
|
+
|
|
101
|
+
# SageMath parsed files
|
|
102
|
+
*.sage.py
|
|
103
|
+
|
|
104
|
+
# dotenv
|
|
105
|
+
.env
|
|
106
|
+
|
|
107
|
+
# virtualenv
|
|
108
|
+
.venv
|
|
109
|
+
venv/
|
|
110
|
+
ENV/
|
|
111
|
+
|
|
112
|
+
# Spyder project settings
|
|
113
|
+
.spyderproject
|
|
114
|
+
.spyproject
|
|
115
|
+
|
|
116
|
+
# Rope project settings
|
|
117
|
+
.ropeproject
|
|
118
|
+
|
|
119
|
+
# mkdocs documentation
|
|
120
|
+
/site
|
|
121
|
+
|
|
122
|
+
# mypy
|
|
123
|
+
.mypy_cache/
|
|
124
|
+
|
|
125
|
+
.vscode
|
|
126
|
+
*.swp
|
|
127
|
+
|
|
128
|
+
# osx generated files
|
|
129
|
+
.DS_Store
|
|
130
|
+
.DS_Store?
|
|
131
|
+
.Trashes
|
|
132
|
+
ehthumbs.db
|
|
133
|
+
Thumbs.db
|
|
134
|
+
.idea
|
|
135
|
+
|
|
136
|
+
# pytest
|
|
137
|
+
.pytest_cache
|
|
138
|
+
|
|
139
|
+
# tools/trust-doc-nbs
|
|
140
|
+
docs_src/.last_checked
|
|
141
|
+
|
|
142
|
+
# symlinks to fastai
|
|
143
|
+
docs_src/fastai
|
|
144
|
+
tools/fastai
|
|
145
|
+
|
|
146
|
+
# packaged native scripts
|
|
147
|
+
python/xhtmlmd.data/scripts/*
|
|
148
|
+
!python/xhtmlmd.data/scripts/.gitkeep
|
|
149
|
+
|
|
150
|
+
# link checker
|
|
151
|
+
checklink/cookies.txt
|
|
152
|
+
|
|
153
|
+
# .gitconfig is now autogenerated
|
|
154
|
+
.gitconfig
|
|
155
|
+
|
|
156
|
+
_docs
|