streamdown 0.28.0__tar.gz → 0.29.0__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.
- {streamdown-0.28.0 → streamdown-0.29.0}/PKG-INFO +3 -3
- {streamdown-0.28.0 → streamdown-0.29.0}/README.md +2 -2
- {streamdown-0.28.0 → streamdown-0.29.0}/pyproject.toml +1 -1
- {streamdown-0.28.0 → streamdown-0.29.0}/streamdown/sd.py +2 -2
- {streamdown-0.28.0 → streamdown-0.29.0}/.gitignore +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/2q +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/LICENSE.MIT +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/requirements.txt +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/streamdown/__init__.py +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/streamdown/plugins/README.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/streamdown/plugins/latex.py +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/README.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/backtick-with-post-spaces.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/blankie.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/block.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/bold_reset_with_link.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/broken-code.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/broken-example.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/chunk-buffer.sh +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/cjk-table.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/cjk-wrap.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/code.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/dimcheck.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/example.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/fizzbuzz.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/inline.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/jimmy_webb.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/line-buffer.sh +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/line-wrap.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/links.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/list-test.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/managerie.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/mandlebrot.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/markdown.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/nested-example.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/outline.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/pvgo_512.jpg +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/pythonvgo.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/qwen3.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/rerun.zsh +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/slash.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/strip-chunks.sh +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/table-break.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/table_test.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/test.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/test_input.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/uline.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tests/wm.md +0 -0
- {streamdown-0.28.0 → streamdown-0.29.0}/tools/deploy.sh +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streamdown
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.29.0
|
|
4
4
|
Summary: A streaming markdown renderer for modern terminals with syntax highlighting
|
|
5
5
|
Project-URL: Homepage, https://github.com/kristopolous/Streamdown
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/kristopolous/Streamdown/issues
|
|
@@ -56,7 +56,7 @@ Watch Streamdown run over a FIFO pipe through `tee` in tmux on an M4 using BitNe
|
|
|
56
56
|
### Provides clean copyable code for long code lines
|
|
57
57
|
Other renderers inject line breaks when copying code that wraps around. Streamdown's better and now you are too!
|
|
58
58
|
|
|
59
|
-
Set `PrettyBroken` and `PrettyPad` to False to make Streamdown ensure code is always cleanly mouse
|
|
59
|
+
Set `PrettyBroken` and `PrettyPad` to False in your toml (see below) to make Streamdown ensure code is always cleanly mouse copyable
|
|
60
60
|

|
|
61
61
|
|
|
62
62
|
|
|
@@ -64,7 +64,7 @@ Set `PrettyBroken` and `PrettyPad` to False to make Streamdown ensure code is al
|
|
|
64
64
|
Here's kitty and alacritty.
|
|
65
65
|

|
|
66
66
|
|
|
67
|
-
###
|
|
67
|
+
### Hyperlinks (OSC 8) and Clipboard (OSC 52)
|
|
68
68
|
The optional `Clipboard` feature puts the final codeblock into your clipboard. See below for details.
|
|
69
69
|
|
|
70
70
|
[links.webm](https://github.com/user-attachments/assets/a5f71791-7c58-4183-ad3b-309f470c08a3)
|
|
@@ -26,7 +26,7 @@ Watch Streamdown run over a FIFO pipe through `tee` in tmux on an M4 using BitNe
|
|
|
26
26
|
### Provides clean copyable code for long code lines
|
|
27
27
|
Other renderers inject line breaks when copying code that wraps around. Streamdown's better and now you are too!
|
|
28
28
|
|
|
29
|
-
Set `PrettyBroken` and `PrettyPad` to False to make Streamdown ensure code is always cleanly mouse
|
|
29
|
+
Set `PrettyBroken` and `PrettyPad` to False in your toml (see below) to make Streamdown ensure code is always cleanly mouse copyable
|
|
30
30
|

|
|
31
31
|
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Set `PrettyBroken` and `PrettyPad` to False to make Streamdown ensure code is al
|
|
|
34
34
|
Here's kitty and alacritty.
|
|
35
35
|

|
|
36
36
|
|
|
37
|
-
###
|
|
37
|
+
### Hyperlinks (OSC 8) and Clipboard (OSC 52)
|
|
38
38
|
The optional `Clipboard` feature puts the final codeblock into your clipboard. See below for details.
|
|
39
39
|
|
|
40
40
|
[links.webm](https://github.com/user-attachments/assets/a5f71791-7c58-4183-ad3b-309f470c08a3)
|
|
@@ -29,6 +29,7 @@ import shutil
|
|
|
29
29
|
import traceback
|
|
30
30
|
import colorsys
|
|
31
31
|
import base64
|
|
32
|
+
import subprocess
|
|
32
33
|
from io import BytesIO
|
|
33
34
|
from term_image.image import from_file, from_url
|
|
34
35
|
import pygments.util
|
|
@@ -953,7 +954,7 @@ def parse(stream):
|
|
|
953
954
|
continue
|
|
954
955
|
|
|
955
956
|
# <h1> ... <h6>
|
|
956
|
-
header_match = re.match(r"^\s*(#{1,6})\s
|
|
957
|
+
header_match = re.match(r"^\s*(#{1,6})\s*(.*)", line)
|
|
957
958
|
if header_match:
|
|
958
959
|
level = len(header_match.group(1))
|
|
959
960
|
yield emit_h(level, header_match.group(2))
|
|
@@ -1086,7 +1087,6 @@ def main():
|
|
|
1086
1087
|
import importlib.metadata
|
|
1087
1088
|
print(importlib.metadata.version("streamdown"))
|
|
1088
1089
|
except importlib.metadata.PackageNotFoundError:
|
|
1089
|
-
import subprocess
|
|
1090
1090
|
print(subprocess.run(
|
|
1091
1091
|
['git', 'describe', '--always', '--dirty', '--tags'],
|
|
1092
1092
|
cwd=os.path.dirname(os.path.abspath(__file__)),
|
|
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
|