mdhtml 0.1.48__tar.gz → 0.1.49__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.
Files changed (153) hide show
  1. {mdhtml-0.1.48 → mdhtml-0.1.49}/.github/workflows/ci.yml +4 -7
  2. {mdhtml-0.1.48 → mdhtml-0.1.49}/Cargo.lock +8 -8
  3. {mdhtml-0.1.48 → mdhtml-0.1.49}/Cargo.toml +1 -1
  4. {mdhtml-0.1.48 → mdhtml-0.1.49}/DEV.md +2 -2
  5. {mdhtml-0.1.48 → mdhtml-0.1.49}/PKG-INFO +2 -1
  6. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/README.md +6 -7
  7. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/package.json +10 -3
  8. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/test/parser.test.js +1 -1
  9. {mdhtml-0.1.48 → mdhtml-0.1.49}/pyproject.toml +6 -2
  10. mdhtml-0.1.48/package-lock.json +0 -291
  11. mdhtml-0.1.48/package.json +0 -4
  12. {mdhtml-0.1.48 → mdhtml-0.1.49}/.cargo/config.toml +0 -0
  13. {mdhtml-0.1.48 → mdhtml-0.1.49}/.gitignore +0 -0
  14. {mdhtml-0.1.48 → mdhtml-0.1.49}/.nojekyll +0 -0
  15. {mdhtml-0.1.48 → mdhtml-0.1.49}/CHANGELOG.md +0 -0
  16. {mdhtml-0.1.48 → mdhtml-0.1.49}/LICENSE +0 -0
  17. {mdhtml-0.1.48 → mdhtml-0.1.49}/README.md +0 -0
  18. {mdhtml-0.1.48 → mdhtml-0.1.49}/_config.yml +0 -0
  19. {mdhtml-0.1.48 → mdhtml-0.1.49}/_layouts/default.html +0 -0
  20. {mdhtml-0.1.48 → mdhtml-0.1.49}/docs/DIALECT.md +0 -0
  21. {mdhtml-0.1.48 → mdhtml-0.1.49}/docs/puppy.jpg +0 -0
  22. {mdhtml-0.1.48 → mdhtml-0.1.49}/docs/sample.html +0 -0
  23. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/README.md +0 -0
  24. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/demo.md +0 -0
  25. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/examples.ipynb +0 -0
  26. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/filldemo.py +0 -0
  27. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo-bound.docx +0 -0
  28. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo-filled.md +0 -0
  29. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo-filled.pdf +0 -0
  30. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo-form.docx +0 -0
  31. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo-render.md +0 -0
  32. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo.docx +0 -0
  33. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo.html +0 -0
  34. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo.ipynb +0 -0
  35. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo.md +0 -0
  36. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo.pdf +0 -0
  37. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/legal_demo.typ +0 -0
  38. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/nbsample.ipynb +0 -0
  39. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/puppy.jpg +0 -0
  40. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/render_demo.py +0 -0
  41. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/sample-clean.md +0 -0
  42. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/sample-render.md +0 -0
  43. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/sample.css +0 -0
  44. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/sample.js +0 -0
  45. {mdhtml-0.1.48 → mdhtml-0.1.49}/examples/sample.md +0 -0
  46. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/LICENSE +0 -0
  47. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/demo/activity.js +0 -0
  48. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/demo.html +0 -0
  49. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/dialect-mini.md +0 -0
  50. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/index.d.ts +0 -0
  51. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/index.js +0 -0
  52. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/inline.js +0 -0
  53. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/parse.js +0 -0
  54. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/scripts/dev.js +0 -0
  55. {mdhtml-0.1.48 → mdhtml-0.1.49}/lite/test/fixtures.js +0 -0
  56. {mdhtml-0.1.48 → mdhtml-0.1.49}/py/Cargo.toml +0 -0
  57. {mdhtml-0.1.48 → mdhtml-0.1.49}/py/build.rs +0 -0
  58. {mdhtml-0.1.48 → mdhtml-0.1.49}/py/src/lib.rs +0 -0
  59. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/__init__.py +0 -0
  60. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/__main__.py +0 -0
  61. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/_cli.py +0 -0
  62. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/chunk.py +0 -0
  63. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/controls.html +0 -0
  64. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/export.py +0 -0
  65. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/fill.py +0 -0
  66. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/md.py +0 -0
  67. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/md2html.py +0 -0
  68. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/mustache.py +0 -0
  69. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/page.css +0 -0
  70. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/readme.py +0 -0
  71. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/tools.py +0 -0
  72. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/typst.py +0 -0
  73. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/view.css +0 -0
  74. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/view.js +0 -0
  75. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/viewmd.py +0 -0
  76. {mdhtml-0.1.48 → mdhtml-0.1.49}/python/mdhtml/wrap.py +0 -0
  77. {mdhtml-0.1.48 → mdhtml-0.1.49}/rustfmt.toml +0 -0
  78. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/ast.rs +0 -0
  79. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/attrs.rs +0 -0
  80. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/block.rs +0 -0
  81. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/chunk.rs +0 -0
  82. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/diagnostic.rs +0 -0
  83. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/entity.rs +0 -0
  84. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/entity_table.bin +0 -0
  85. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/export_html.rs +0 -0
  86. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/frontmatter.rs +0 -0
  87. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/highlight.rs +0 -0
  88. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/html.rs +0 -0
  89. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/import.rs +0 -0
  90. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/inline.rs +0 -0
  91. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/inline_spans.rs +0 -0
  92. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/lib.rs +0 -0
  93. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/line.rs +0 -0
  94. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/markdown.rs +0 -0
  95. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/preview.css +0 -0
  96. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/render.rs +0 -0
  97. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/resolve.rs +0 -0
  98. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/scan.rs +0 -0
  99. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/template.rs +0 -0
  100. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/tmpl.css +0 -0
  101. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/wikitext.rs +0 -0
  102. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/wrap.rs +0 -0
  103. {mdhtml-0.1.48 → mdhtml-0.1.49}/src/write_md.rs +0 -0
  104. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/canonical.rs +0 -0
  105. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/fixtures/dialect.html +0 -0
  106. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/fixtures/dialect.md +0 -0
  107. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/helpers.py +0 -0
  108. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/resolve.rs +0 -0
  109. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/cmark-gfm/README.md +0 -0
  110. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/cmark-gfm/extensions.txt +0 -0
  111. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/cmark-gfm/spec.txt +0 -0
  112. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/kramdown.txt +0 -0
  113. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/markdowntests.md +0 -0
  114. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/mf.txt +0 -0
  115. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/pandoc-grid-tables.txt +0 -0
  116. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Abbr.text +0 -0
  117. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Abbr.xhtml +0 -0
  118. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Backtick Fenced Code Blocks Special Cases.text +0 -0
  119. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Backtick Fenced Code Blocks Special Cases.xhtml +0 -0
  120. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Backtick Fenced Code Blocks.text +0 -0
  121. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Backtick Fenced Code Blocks.xhtml +0 -0
  122. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Definition Lists.text +0 -0
  123. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Definition Lists.xhtml +0 -0
  124. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Emphasis.text +0 -0
  125. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Emphasis.xhtml +0 -0
  126. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Footnotes.text +0 -0
  127. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Footnotes.xhtml +0 -0
  128. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Headers with attributes.text +0 -0
  129. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Headers with attributes.xhtml +0 -0
  130. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Inline HTML with Markdown content.text +0 -0
  131. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Inline HTML with Markdown content.xhtml +0 -0
  132. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Link & Image Attributes.text +0 -0
  133. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Link & Image Attributes.xhtml +0 -0
  134. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Tables.text +0 -0
  135. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Tables.xhtml +0 -0
  136. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Tilde Fenced Code Blocks Special Cases.text +0 -0
  137. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Tilde Fenced Code Blocks Special Cases.xhtml +0 -0
  138. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Tilde Fenced Code Blocks.text +0 -0
  139. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/source/php-markdown-extra.mdtest/Tilde Fenced Code Blocks.xhtml +0 -0
  140. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_bibliography.py +0 -0
  141. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_chunk.py +0 -0
  142. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_conformance.py +0 -0
  143. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_export.py +0 -0
  144. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_fill.py +0 -0
  145. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_focused.py +0 -0
  146. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_pathological.py +0 -0
  147. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_python.py +0 -0
  148. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_readme.py +0 -0
  149. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_typst.py +0 -0
  150. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/test_wrap.py +0 -0
  151. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/wasm.mjs +0 -0
  152. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/wikitext.rs +0 -0
  153. {mdhtml-0.1.48 → mdhtml-0.1.49}/tests/wrap.rs +0 -0
@@ -11,14 +11,11 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - uses: actions/checkout@v7
14
- - uses: actions/setup-node@v7
14
+ - uses: voidzero-dev/setup-vp@v1
15
15
  with:
16
- node-version: lts/*
17
- cache: npm
18
- cache-dependency-path: package-lock.json
19
- - run: npm ci
20
- - run: npm test --workspace mdhtml-lite
21
- - run: npm pack --workspace mdhtml-lite --dry-run
16
+ working-directory: lite
17
+ - run: vp test
18
+ working-directory: lite
22
19
 
23
20
  test:
24
21
  runs-on: ubuntu-latest
@@ -125,7 +125,7 @@ dependencies = [
125
125
 
126
126
  [[package]]
127
127
  name = "mdhtml-crate"
128
- version = "0.1.48"
128
+ version = "0.1.49"
129
129
  dependencies = [
130
130
  "base64",
131
131
  "fast5ever",
@@ -133,7 +133,7 @@ dependencies = [
133
133
 
134
134
  [[package]]
135
135
  name = "mdhtml-py"
136
- version = "0.1.48"
136
+ version = "0.1.49"
137
137
  dependencies = [
138
138
  "mdhtml-crate",
139
139
  "pyo3",
@@ -142,7 +142,7 @@ dependencies = [
142
142
 
143
143
  [[package]]
144
144
  name = "mdhtml-wasm"
145
- version = "0.1.48"
145
+ version = "0.1.49"
146
146
  dependencies = [
147
147
  "mdhtml-crate",
148
148
  ]
@@ -446,9 +446,9 @@ dependencies = [
446
446
 
447
447
  [[package]]
448
448
  name = "toml"
449
- version = "1.2.1+spec-1.1.0"
449
+ version = "1.2.2+spec-1.1.0"
450
450
  source = "registry+https://github.com/rust-lang/crates.io-index"
451
- checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7"
451
+ checksum = "5426cb1b964690d913f6c5c1a1ae0b42f428ec506bb4d452876d7a209c9bca3b"
452
452
  dependencies = [
453
453
  "indexmap",
454
454
  "serde_core",
@@ -470,9 +470,9 @@ dependencies = [
470
470
 
471
471
  [[package]]
472
472
  name = "toml_parser"
473
- version = "1.1.5+spec-1.1.0"
473
+ version = "1.1.6+spec-1.1.0"
474
474
  source = "registry+https://github.com/rust-lang/crates.io-index"
475
- checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"
475
+ checksum = "e6769c452d71ba30696c6b37770c439a9cc9110f47f7d5cdbeda79840ef5ea31"
476
476
  dependencies = [
477
477
  "winnow",
478
478
  ]
@@ -515,7 +515,7 @@ checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef"
515
515
 
516
516
  [[package]]
517
517
  name = "xtask"
518
- version = "0.1.48"
518
+ version = "0.1.49"
519
519
  dependencies = [
520
520
  "anyhow",
521
521
  "serde_json",
@@ -2,7 +2,7 @@
2
2
  members = ["py"]
3
3
 
4
4
  [workspace.package]
5
- version = "0.1.48"
5
+ version = "0.1.49"
6
6
  edition = "2024"
7
7
  rust-version = "1.91"
8
8
  license = "Apache-2.0"
@@ -21,7 +21,7 @@ The `release` profile is optimized and incremental for fast local iteration. CI
21
21
 
22
22
  ## Testing
23
23
 
24
- The independent `mdhtml-lite` npm package lives in `lite/`. Run `npm install` there once, then `npm test` or `npm run test:watch`; no Python or Rust build is needed. `npm run dev` serves its streaming/tool-wrapping demo. The tests curate cases from the existing mdhtml fixtures, and `npm pack --dry-run` checks the published file set. See `lite/dialect-mini.md` for its preview contract.
24
+ The independent `mdhtml-lite` npm package lives in `lite/`. Run `vp install` there once, then `vp test` or `vp test watch`; no Python or Rust build is needed. `vp run dev` serves its streaming/tool-wrapping demo. The tests curate cases from the existing mdhtml fixtures. See `lite/dialect-mini.md` for its preview contract.
25
25
 
26
26
  ```bash
27
27
  cargo fastfmt
@@ -128,6 +128,6 @@ ship-release
128
128
 
129
129
  It tags `v<version>`, pushes branch and tag, then bumps `Cargo.toml`, refreshes the editable install, and pushes the bump to `main` without a tag.
130
130
 
131
- No local build is required for release. A push to `main` runs only the `test` and `wasm` jobs. On a `v*` tag, CI also builds the wheels for Linux and macOS and the sdist, alongside `test`. Once `test` and those builds pass, it creates a GitHub Release and publishes to PyPI. It publishes `mdhtml-crate` to crates.io after `test` passes. After `test` and `wasm` pass, it publishes the npm package that the `wasm` job built and tested, through npm's trusted publishing.
131
+ No local build is required for release. A push to `main` runs the `lite`, `test` and `wasm` jobs. On a `v*` tag, CI also builds the wheels for Linux and macOS and the sdist, alongside `test`. Once `test` and those builds pass, it creates a GitHub Release and publishes to PyPI. It publishes `mdhtml-crate` to crates.io after `test` passes. After `test`, `wasm` and `lite` pass, it publishes both npm packages (`@answerdotai/mdhtml` from `wasm/pkg` and `mdhtml-lite` from `lite`) through npm's trusted publishing.
132
132
 
133
133
  The `test` and `wasm` jobs cache compiled dependencies with `Swatinem/rust-cache`. The repository has no `Cargo.lock`. Each job creates one before the cache step. A new dependency version then changes the cache key.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mdhtml
3
- Version: 0.1.48
3
+ Version: 0.1.49
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Requires-Dist: fast5ever>=0.1.5
@@ -12,6 +12,7 @@ Requires-Dist: fastws-cli>=0.0.20 ; extra == 'dev'
12
12
  Requires-Dist: fastship>=0.1.5 ; extra == 'dev'
13
13
  Requires-Dist: maturin~=1.0 ; extra == 'dev'
14
14
  Requires-Dist: pytest ; extra == 'dev'
15
+ Requires-Dist: pytest-timeout ; extra == 'dev'
15
16
  Requires-Dist: execnb>=0.3.2 ; extra == 'dev'
16
17
  Requires-Dist: fastpylight>=0.1.18 ; extra == 'dev'
17
18
  Requires-Dist: math-core~=0.7.0 ; extra == 'dev'
@@ -30,21 +30,20 @@ Fence classes and info are ordinary markup: `pre.tool > code.language-json` and
30
30
 
31
31
  ## Development
32
32
 
33
- The repository root declares `lite/` as a JavaScript workspace and owns its `package-lock.json`. Fastws links this source-ready package directly; no build step or application-specific alias is needed.
33
+ `pyproject.toml` registers `lite/` under `[tool.fastws].js-packages`. Fastws links this source-ready package directly; no build step or application-specific alias is needed.
34
34
 
35
35
  From this directory:
36
36
 
37
37
  ```sh
38
- npm install
39
- npm test
40
- npm run test:watch
41
- npm run dev
42
- npm pack --dry-run
38
+ vp install
39
+ vp test
40
+ vp test watch
41
+ vp run dev
43
42
  ```
44
43
 
45
44
  The demo is served at `http://127.0.0.1:8123`. Its application-owned layout groups tools and intermediate prose into one activity disclosure, then moves every block after the last tool outside when the stream ends. Open the disclosure during streaming to see that its state and nodes survive updates. Clear or start another response to exercise reset.
46
45
 
47
- Tests use Node's built-in runner and a real HTML DOM implementation. They read selected mdhtml fixtures from the parent repository and exercise the demo's actual layout, without a Python or Rust build. No build step is needed for the package's ES modules.
46
+ Tests run with Vite+ (`vp test`) against a real HTML DOM implementation. They read selected mdhtml fixtures from the parent repository and exercise the demo's actual layout, without a Python or Rust build. No build step is needed for the package's ES modules.
48
47
 
49
48
  ## Publishing
50
49
 
@@ -3,6 +3,13 @@
3
3
  "version": "0.1.0",
4
4
  "description": "Small streaming md previews, with mdhtml as the authoritative final renderer",
5
5
  "type": "module",
6
+ "packageManager": "pnpm@10.34.9",
7
+ "devEngines": {
8
+ "runtime": {
9
+ "name": "node",
10
+ "version": "^26.12.1"
11
+ }
12
+ },
6
13
  "license": "Apache-2.0",
7
14
  "sideEffects": false,
8
15
  "exports": {
@@ -30,14 +37,14 @@
30
37
  "llm"
31
38
  ],
32
39
  "scripts": {
33
- "test": "node --test test/*.test.js",
34
- "test:watch": "node --test --watch test/*.test.js",
40
+ "test:watch": "vp test watch",
35
41
  "dev": "node scripts/dev.js"
36
42
  },
37
43
  "engines": {
38
44
  "node": ">=20"
39
45
  },
40
46
  "devDependencies": {
41
- "linkedom": "^0.18.15"
47
+ "linkedom": "^0.18.15",
48
+ "vite-plus": ">=1.7.0"
42
49
  }
43
50
  }
@@ -1,4 +1,4 @@
1
- import {test} from 'node:test';
1
+ import {test} from 'vite-plus/test';
2
2
  import assert from 'node:assert/strict';
3
3
  import {parseHTML} from 'linkedom';
4
4
  import {render, Stream} from 'mdhtml-lite';
@@ -31,7 +31,7 @@ Issues = "https://github.com/AnswerDotAI/mdhtml/issues"
31
31
  [project.optional-dependencies]
32
32
  fill = ["execnb>=0.3.2"]
33
33
  hl = ["fastpylight>=0.1.18"]
34
- dev = ["fastws-cli>=0.0.20", "fastship>=0.1.5", "maturin~=1.0", "pytest", "execnb>=0.3.2", "fastpylight>=0.1.18", "math-core~=0.7.0"]
34
+ dev = ["fastws-cli>=0.0.20", "fastship>=0.1.5", "maturin~=1.0", "pytest", "pytest-timeout", "execnb>=0.3.2", "fastpylight>=0.1.18", "math-core~=0.7.0"]
35
35
 
36
36
  [project.entry-points.fastaudit_safe_native]
37
37
  mdhtml = "mdhtml"
@@ -44,7 +44,7 @@ module-name = "mdhtml._native"
44
44
  [tool.pytest.ini_options]
45
45
  testpaths = ["tests"]
46
46
  markers = ["slow: expensive stress tests, excluded by default; run with -m slow"]
47
- addopts = "-m 'not slow'"
47
+ addopts = "-p timeout -m 'not slow'"
48
48
  timeout = 60
49
49
 
50
50
  [tool.uv]
@@ -52,3 +52,7 @@ cache-keys = [{ file = "pyproject.toml" }, { file = "Cargo.toml" }, { file = "py
52
52
 
53
53
  [tool.fastship]
54
54
  branch = "main"
55
+
56
+ [tool.fastws]
57
+ js-packages = ["lite"]
58
+ wasm-package = { name = "@answerdotai/mdhtml", path = "wasm/pkg" }
@@ -1,291 +0,0 @@
1
- {
2
- "name": "mdhtml",
3
- "lockfileVersion": 3,
4
- "requires": true,
5
- "packages": {
6
- "": {
7
- "workspaces": [
8
- "lite"
9
- ]
10
- },
11
- "lite": {
12
- "name": "mdhtml-lite",
13
- "version": "0.1.0",
14
- "license": "Apache-2.0",
15
- "devDependencies": {
16
- "linkedom": "^0.18.15"
17
- },
18
- "engines": {
19
- "node": ">=20"
20
- }
21
- },
22
- "lite/node_modules/boolbase": {
23
- "version": "2.0.0",
24
- "dev": true,
25
- "license": "ISC",
26
- "engines": {
27
- "node": ">=20.19.0"
28
- },
29
- "funding": {
30
- "type": "github",
31
- "url": "https://github.com/sponsors/fb55"
32
- }
33
- },
34
- "lite/node_modules/css-select": {
35
- "version": "7.0.0",
36
- "dev": true,
37
- "license": "BSD-2-Clause",
38
- "dependencies": {
39
- "boolbase": "^2.0.0",
40
- "css-what": "^8.0.0",
41
- "domhandler": "^6.0.1",
42
- "domutils": "^4.0.2",
43
- "nth-check": "^3.0.1"
44
- },
45
- "engines": {
46
- "node": ">=20.19.0"
47
- },
48
- "funding": {
49
- "type": "github",
50
- "url": "https://github.com/sponsors/fb55"
51
- }
52
- },
53
- "lite/node_modules/css-what": {
54
- "version": "8.0.0",
55
- "dev": true,
56
- "license": "BSD-2-Clause",
57
- "engines": {
58
- "node": ">=20.19.0"
59
- },
60
- "funding": {
61
- "type": "github",
62
- "url": "https://github.com/sponsors/fb55"
63
- }
64
- },
65
- "lite/node_modules/cssomnom": {
66
- "version": "0.1.12",
67
- "dev": true,
68
- "license": "Apache-2.0",
69
- "engines": {
70
- "node": ">=20.0.0"
71
- }
72
- },
73
- "lite/node_modules/dom-serializer": {
74
- "version": "3.1.1",
75
- "dev": true,
76
- "license": "MIT",
77
- "dependencies": {
78
- "domelementtype": "^3.0.0",
79
- "domhandler": "^6.0.0",
80
- "entities": "^8.0.0"
81
- },
82
- "engines": {
83
- "node": ">=20.19.0"
84
- },
85
- "funding": {
86
- "type": "github",
87
- "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
88
- }
89
- },
90
- "lite/node_modules/domelementtype": {
91
- "version": "3.0.0",
92
- "dev": true,
93
- "funding": [
94
- {
95
- "type": "github",
96
- "url": "https://github.com/sponsors/fb55"
97
- }
98
- ],
99
- "license": "BSD-2-Clause",
100
- "engines": {
101
- "node": ">=20.19.0"
102
- }
103
- },
104
- "lite/node_modules/domhandler": {
105
- "version": "6.0.1",
106
- "dev": true,
107
- "license": "BSD-2-Clause",
108
- "dependencies": {
109
- "domelementtype": "^3.0.0"
110
- },
111
- "engines": {
112
- "node": ">=20.19.0"
113
- },
114
- "funding": {
115
- "type": "github",
116
- "url": "https://github.com/fb55/domhandler?sponsor=1"
117
- }
118
- },
119
- "lite/node_modules/domutils": {
120
- "version": "4.0.2",
121
- "dev": true,
122
- "license": "BSD-2-Clause",
123
- "dependencies": {
124
- "dom-serializer": "^3.0.0",
125
- "domelementtype": "^3.0.0",
126
- "domhandler": "^6.0.0"
127
- },
128
- "engines": {
129
- "node": ">=20.19.0"
130
- },
131
- "funding": {
132
- "type": "github",
133
- "url": "https://github.com/fb55/domutils?sponsor=1"
134
- }
135
- },
136
- "lite/node_modules/entities": {
137
- "version": "8.1.0",
138
- "dev": true,
139
- "license": "BSD-2-Clause",
140
- "engines": {
141
- "node": ">=20.19.0"
142
- },
143
- "funding": {
144
- "url": "https://github.com/fb55/entities?sponsor=1"
145
- }
146
- },
147
- "lite/node_modules/html-escaper": {
148
- "version": "3.0.3",
149
- "dev": true,
150
- "license": "MIT"
151
- },
152
- "lite/node_modules/htmlparser2": {
153
- "version": "10.1.0",
154
- "dev": true,
155
- "funding": [
156
- "https://github.com/fb55/htmlparser2?sponsor=1",
157
- {
158
- "type": "github",
159
- "url": "https://github.com/sponsors/fb55"
160
- }
161
- ],
162
- "license": "MIT",
163
- "dependencies": {
164
- "domelementtype": "^2.3.0",
165
- "domhandler": "^5.0.3",
166
- "domutils": "^3.2.2",
167
- "entities": "^7.0.1"
168
- }
169
- },
170
- "lite/node_modules/htmlparser2/node_modules/dom-serializer": {
171
- "version": "2.0.0",
172
- "dev": true,
173
- "license": "MIT",
174
- "dependencies": {
175
- "domelementtype": "^2.3.0",
176
- "domhandler": "^5.0.2",
177
- "entities": "^4.2.0"
178
- },
179
- "funding": {
180
- "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
181
- }
182
- },
183
- "lite/node_modules/htmlparser2/node_modules/dom-serializer/node_modules/entities": {
184
- "version": "4.5.0",
185
- "dev": true,
186
- "license": "BSD-2-Clause",
187
- "engines": {
188
- "node": ">=0.12"
189
- },
190
- "funding": {
191
- "url": "https://github.com/fb55/entities?sponsor=1"
192
- }
193
- },
194
- "lite/node_modules/htmlparser2/node_modules/domelementtype": {
195
- "version": "2.3.0",
196
- "dev": true,
197
- "funding": [
198
- {
199
- "type": "github",
200
- "url": "https://github.com/sponsors/fb55"
201
- }
202
- ],
203
- "license": "BSD-2-Clause"
204
- },
205
- "lite/node_modules/htmlparser2/node_modules/domhandler": {
206
- "version": "5.0.3",
207
- "dev": true,
208
- "license": "BSD-2-Clause",
209
- "dependencies": {
210
- "domelementtype": "^2.3.0"
211
- },
212
- "engines": {
213
- "node": ">= 4"
214
- },
215
- "funding": {
216
- "url": "https://github.com/fb55/domhandler?sponsor=1"
217
- }
218
- },
219
- "lite/node_modules/htmlparser2/node_modules/domutils": {
220
- "version": "3.2.2",
221
- "dev": true,
222
- "license": "BSD-2-Clause",
223
- "dependencies": {
224
- "dom-serializer": "^2.0.0",
225
- "domelementtype": "^2.3.0",
226
- "domhandler": "^5.0.3"
227
- },
228
- "funding": {
229
- "url": "https://github.com/fb55/domutils?sponsor=1"
230
- }
231
- },
232
- "lite/node_modules/htmlparser2/node_modules/entities": {
233
- "version": "7.0.1",
234
- "dev": true,
235
- "license": "BSD-2-Clause",
236
- "engines": {
237
- "node": ">=0.12"
238
- },
239
- "funding": {
240
- "url": "https://github.com/fb55/entities?sponsor=1"
241
- }
242
- },
243
- "lite/node_modules/linkedom": {
244
- "version": "0.18.15",
245
- "dev": true,
246
- "license": "ISC",
247
- "dependencies": {
248
- "css-select": "^7.0.0",
249
- "cssomnom": "^0.1.11",
250
- "html-escaper": "^3.0.3",
251
- "htmlparser2": "^10.1.0",
252
- "uhyphen": "^0.2.0"
253
- },
254
- "engines": {
255
- "node": ">=16"
256
- },
257
- "peerDependencies": {
258
- "canvas": ">= 2"
259
- },
260
- "peerDependenciesMeta": {
261
- "canvas": {
262
- "optional": true
263
- }
264
- }
265
- },
266
- "lite/node_modules/nth-check": {
267
- "version": "3.0.1",
268
- "dev": true,
269
- "license": "BSD-2-Clause",
270
- "dependencies": {
271
- "boolbase": "^2.0.0"
272
- },
273
- "engines": {
274
- "node": ">=20.19.0"
275
- },
276
- "funding": {
277
- "type": "github",
278
- "url": "https://github.com/fb55/nth-check?sponsor=1"
279
- }
280
- },
281
- "lite/node_modules/uhyphen": {
282
- "version": "0.2.0",
283
- "dev": true,
284
- "license": "ISC"
285
- },
286
- "node_modules/mdhtml-lite": {
287
- "resolved": "lite",
288
- "link": true
289
- }
290
- }
291
- }
@@ -1,4 +0,0 @@
1
- {
2
- "private": true,
3
- "workspaces": ["lite"]
4
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes