streamdown 0.35.3__tar.gz → 0.35.4__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.35.3 → streamdown-0.35.4}/PKG-INFO +12 -14
- {streamdown-0.35.3 → streamdown-0.35.4}/README.md +11 -13
- {streamdown-0.35.3 → streamdown-0.35.4}/pyproject.toml +1 -1
- {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/sd.py +4 -1
- {streamdown-0.35.3 → streamdown-0.35.4}/.aider.chat.history.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/.aider.input.history +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/.aider.tags.cache.v4/cache.db +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/.envrc +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/.gitignore +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/.vimrc +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/24-bit-color.sh +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/LICENSE.MIT +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/assets/logo.png +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/assets/logo.svg +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/configurable.png +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/copyable.png +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/dunder.png +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/error.txt +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/math +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/newdir/file_0.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/newdir/file_1.rb +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/newdir/file_2.jl +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/passthrough.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/pygments.util +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/python-go.png +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/re +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/requirements.txt +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/shutil +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/somelog.txt +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/ss-new.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/ss.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/__init__.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/plugins/README.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/plugins/latex.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/qwen3.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/ss +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/ss1 +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/test.txt +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/subprocess +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/table.png +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/temp.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/test.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tester.py +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/README.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/backtick-with-post-spaces.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/bg-messed-up.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/blankie.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/block.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/bold_reset_with_link.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/broken-code.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/broken-example.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/chinese.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/chunk-buffer.sh +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/cjj.mv +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/cjk-comment.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/cjk-table.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/cjk-wrap.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/code.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/color-restore-after-link.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/dimcheck.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/example.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/fizzbuzz.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/fucking-garbage.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/inline.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/jimmy_webb.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/line-buffer.sh +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/line-wrap.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/links.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/managerie.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/mandlebrot.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/markdown.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/nested-example.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/no-newline.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/oneline-equal.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/outline.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/output.txt +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/pvgo_512.jpg +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/pythonvgo.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/qwen3.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/rerun.zsh +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/run-tests.sh +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/slash.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/strip-chunks.sh +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/table-break.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/table_test.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/test.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/test_input.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/uline.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tests/wm.md +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tools/deploy.sh +0 -0
- {streamdown-0.35.3 → streamdown-0.35.4}/tty +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streamdown
|
|
3
|
-
Version: 0.35.
|
|
3
|
+
Version: 0.35.4
|
|
4
4
|
Summary: A streaming markdown renderer for modern terminals with syntax highlighting
|
|
5
5
|
Project-URL: Homepage, https://github.com/day50-dev/Streamdown
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/day50-dev/Streamdown/issues
|
|
@@ -168,7 +168,8 @@ To override the margin.
|
|
|
168
168
|
|
|
169
169
|
```shell
|
|
170
170
|
usage: sd [-h] [-l LOGLEVEL] [-b BASE] [-c CONFIG] [-w WIDTH] [-e EXEC]
|
|
171
|
-
[-s SCRAPE] [
|
|
171
|
+
[-p PROMPT] [-s SCRAPE] [-v] [--strip]
|
|
172
|
+
[filenameList ...]
|
|
172
173
|
|
|
173
174
|
Streamdown is a streaming markdown renderer for modern terminals.
|
|
174
175
|
https://github.com/day50-dev/Streamdown
|
|
@@ -180,21 +181,18 @@ paths:
|
|
|
180
181
|
positional arguments:
|
|
181
182
|
filenameList Input file to process (also takes stdin)
|
|
182
183
|
|
|
183
|
-
|
|
184
|
+
options:
|
|
184
185
|
-h, --help show this help message and exit
|
|
185
|
-
-l
|
|
186
|
+
-l, --loglevel LOGLEVEL
|
|
186
187
|
Set the logging level
|
|
187
|
-
-b
|
|
188
|
-
-c
|
|
189
|
-
|
|
190
|
-
-
|
|
191
|
-
|
|
192
|
-
-
|
|
193
|
-
-p PROMPT, --prompt PROMPT
|
|
194
|
-
A PCRE regex prompt to detect (default: ^.*>\s+$)
|
|
195
|
-
-s SCRAPE, --scrape SCRAPE
|
|
196
|
-
Scrape code snippets to a directory SCRAPE
|
|
188
|
+
-b, --base BASE Set the hsv base: h,s,v
|
|
189
|
+
-c, --config CONFIG Use a custom config override
|
|
190
|
+
-w, --width WIDTH Set the width WIDTH
|
|
191
|
+
-e, --exec EXEC Wrap a program EXEC for more 'proper' i/o handling
|
|
192
|
+
-p, --prompt PROMPT A PCRE regex prompt to detect (default: ^.*>\s+$)
|
|
193
|
+
-s, --scrape SCRAPE Scrape code snippets to a directory SCRAPE
|
|
197
194
|
-v, --version Show version information
|
|
195
|
+
--strip Just strip the markdown and output plaintext
|
|
198
196
|
```
|
|
199
197
|
|
|
200
198
|
**Note**: Some features are not supported on some OSs. Please file a ticket if you need a feature on your platform that isn't working.
|
|
@@ -138,7 +138,8 @@ To override the margin.
|
|
|
138
138
|
|
|
139
139
|
```shell
|
|
140
140
|
usage: sd [-h] [-l LOGLEVEL] [-b BASE] [-c CONFIG] [-w WIDTH] [-e EXEC]
|
|
141
|
-
[-s SCRAPE] [
|
|
141
|
+
[-p PROMPT] [-s SCRAPE] [-v] [--strip]
|
|
142
|
+
[filenameList ...]
|
|
142
143
|
|
|
143
144
|
Streamdown is a streaming markdown renderer for modern terminals.
|
|
144
145
|
https://github.com/day50-dev/Streamdown
|
|
@@ -150,21 +151,18 @@ paths:
|
|
|
150
151
|
positional arguments:
|
|
151
152
|
filenameList Input file to process (also takes stdin)
|
|
152
153
|
|
|
153
|
-
|
|
154
|
+
options:
|
|
154
155
|
-h, --help show this help message and exit
|
|
155
|
-
-l
|
|
156
|
+
-l, --loglevel LOGLEVEL
|
|
156
157
|
Set the logging level
|
|
157
|
-
-b
|
|
158
|
-
-c
|
|
159
|
-
|
|
160
|
-
-
|
|
161
|
-
|
|
162
|
-
-
|
|
163
|
-
-p PROMPT, --prompt PROMPT
|
|
164
|
-
A PCRE regex prompt to detect (default: ^.*>\s+$)
|
|
165
|
-
-s SCRAPE, --scrape SCRAPE
|
|
166
|
-
Scrape code snippets to a directory SCRAPE
|
|
158
|
+
-b, --base BASE Set the hsv base: h,s,v
|
|
159
|
+
-c, --config CONFIG Use a custom config override
|
|
160
|
+
-w, --width WIDTH Set the width WIDTH
|
|
161
|
+
-e, --exec EXEC Wrap a program EXEC for more 'proper' i/o handling
|
|
162
|
+
-p, --prompt PROMPT A PCRE regex prompt to detect (default: ^.*>\s+$)
|
|
163
|
+
-s, --scrape SCRAPE Scrape code snippets to a directory SCRAPE
|
|
167
164
|
-v, --version Show version information
|
|
165
|
+
--strip Just strip the markdown and output plaintext
|
|
168
166
|
```
|
|
169
167
|
|
|
170
168
|
**Note**: Some features are not supported on some OSs. Please file a ticket if you need a feature on your platform that isn't working.
|
|
@@ -1039,7 +1039,10 @@ def parse(stream):
|
|
|
1039
1039
|
|
|
1040
1040
|
def terminal_prep(what):
|
|
1041
1041
|
if Style.Plaintext:
|
|
1042
|
-
|
|
1042
|
+
line = "\n".join([x.rstrip() for x in strip_ansi(what).split("\n")])
|
|
1043
|
+
if len(line.strip()) == 0:
|
|
1044
|
+
return ""
|
|
1045
|
+
return line
|
|
1043
1046
|
return what
|
|
1044
1047
|
|
|
1045
1048
|
def emit(inp):
|
|
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
|