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.
Files changed (91) hide show
  1. {streamdown-0.35.3 → streamdown-0.35.4}/PKG-INFO +12 -14
  2. {streamdown-0.35.3 → streamdown-0.35.4}/README.md +11 -13
  3. {streamdown-0.35.3 → streamdown-0.35.4}/pyproject.toml +1 -1
  4. {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/sd.py +4 -1
  5. {streamdown-0.35.3 → streamdown-0.35.4}/.aider.chat.history.md +0 -0
  6. {streamdown-0.35.3 → streamdown-0.35.4}/.aider.input.history +0 -0
  7. {streamdown-0.35.3 → streamdown-0.35.4}/.aider.tags.cache.v4/cache.db +0 -0
  8. {streamdown-0.35.3 → streamdown-0.35.4}/.envrc +0 -0
  9. {streamdown-0.35.3 → streamdown-0.35.4}/.gitignore +0 -0
  10. {streamdown-0.35.3 → streamdown-0.35.4}/.vimrc +0 -0
  11. {streamdown-0.35.3 → streamdown-0.35.4}/24-bit-color.sh +0 -0
  12. {streamdown-0.35.3 → streamdown-0.35.4}/LICENSE.MIT +0 -0
  13. {streamdown-0.35.3 → streamdown-0.35.4}/assets/logo.png +0 -0
  14. {streamdown-0.35.3 → streamdown-0.35.4}/assets/logo.svg +0 -0
  15. {streamdown-0.35.3 → streamdown-0.35.4}/configurable.png +0 -0
  16. {streamdown-0.35.3 → streamdown-0.35.4}/copyable.png +0 -0
  17. {streamdown-0.35.3 → streamdown-0.35.4}/dunder.png +0 -0
  18. {streamdown-0.35.3 → streamdown-0.35.4}/error.txt +0 -0
  19. {streamdown-0.35.3 → streamdown-0.35.4}/math +0 -0
  20. {streamdown-0.35.3 → streamdown-0.35.4}/newdir/file_0.py +0 -0
  21. {streamdown-0.35.3 → streamdown-0.35.4}/newdir/file_1.rb +0 -0
  22. {streamdown-0.35.3 → streamdown-0.35.4}/newdir/file_2.jl +0 -0
  23. {streamdown-0.35.3 → streamdown-0.35.4}/passthrough.py +0 -0
  24. {streamdown-0.35.3 → streamdown-0.35.4}/pygments.util +0 -0
  25. {streamdown-0.35.3 → streamdown-0.35.4}/python-go.png +0 -0
  26. {streamdown-0.35.3 → streamdown-0.35.4}/re +0 -0
  27. {streamdown-0.35.3 → streamdown-0.35.4}/requirements.txt +0 -0
  28. {streamdown-0.35.3 → streamdown-0.35.4}/shutil +0 -0
  29. {streamdown-0.35.3 → streamdown-0.35.4}/somelog.txt +0 -0
  30. {streamdown-0.35.3 → streamdown-0.35.4}/ss-new.py +0 -0
  31. {streamdown-0.35.3 → streamdown-0.35.4}/ss.py +0 -0
  32. {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/__init__.py +0 -0
  33. {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/plugins/README.md +0 -0
  34. {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/plugins/latex.py +0 -0
  35. {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/qwen3.md +0 -0
  36. {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/ss +0 -0
  37. {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/ss1 +0 -0
  38. {streamdown-0.35.3 → streamdown-0.35.4}/streamdown/test.txt +0 -0
  39. {streamdown-0.35.3 → streamdown-0.35.4}/subprocess +0 -0
  40. {streamdown-0.35.3 → streamdown-0.35.4}/table.png +0 -0
  41. {streamdown-0.35.3 → streamdown-0.35.4}/temp.py +0 -0
  42. {streamdown-0.35.3 → streamdown-0.35.4}/test.py +0 -0
  43. {streamdown-0.35.3 → streamdown-0.35.4}/tester.py +0 -0
  44. {streamdown-0.35.3 → streamdown-0.35.4}/tests/README.md +0 -0
  45. {streamdown-0.35.3 → streamdown-0.35.4}/tests/backtick-with-post-spaces.md +0 -0
  46. {streamdown-0.35.3 → streamdown-0.35.4}/tests/bg-messed-up.md +0 -0
  47. {streamdown-0.35.3 → streamdown-0.35.4}/tests/blankie.md +0 -0
  48. {streamdown-0.35.3 → streamdown-0.35.4}/tests/block.md +0 -0
  49. {streamdown-0.35.3 → streamdown-0.35.4}/tests/bold_reset_with_link.md +0 -0
  50. {streamdown-0.35.3 → streamdown-0.35.4}/tests/broken-code.md +0 -0
  51. {streamdown-0.35.3 → streamdown-0.35.4}/tests/broken-example.md +0 -0
  52. {streamdown-0.35.3 → streamdown-0.35.4}/tests/chinese.md +0 -0
  53. {streamdown-0.35.3 → streamdown-0.35.4}/tests/chunk-buffer.sh +0 -0
  54. {streamdown-0.35.3 → streamdown-0.35.4}/tests/cjj.mv +0 -0
  55. {streamdown-0.35.3 → streamdown-0.35.4}/tests/cjk-comment.md +0 -0
  56. {streamdown-0.35.3 → streamdown-0.35.4}/tests/cjk-table.md +0 -0
  57. {streamdown-0.35.3 → streamdown-0.35.4}/tests/cjk-wrap.md +0 -0
  58. {streamdown-0.35.3 → streamdown-0.35.4}/tests/code.md +0 -0
  59. {streamdown-0.35.3 → streamdown-0.35.4}/tests/color-restore-after-link.md +0 -0
  60. {streamdown-0.35.3 → streamdown-0.35.4}/tests/dimcheck.md +0 -0
  61. {streamdown-0.35.3 → streamdown-0.35.4}/tests/example.md +0 -0
  62. {streamdown-0.35.3 → streamdown-0.35.4}/tests/fizzbuzz.md +0 -0
  63. {streamdown-0.35.3 → streamdown-0.35.4}/tests/fucking-garbage.md +0 -0
  64. {streamdown-0.35.3 → streamdown-0.35.4}/tests/inline.md +0 -0
  65. {streamdown-0.35.3 → streamdown-0.35.4}/tests/jimmy_webb.md +0 -0
  66. {streamdown-0.35.3 → streamdown-0.35.4}/tests/line-buffer.sh +0 -0
  67. {streamdown-0.35.3 → streamdown-0.35.4}/tests/line-wrap.md +0 -0
  68. {streamdown-0.35.3 → streamdown-0.35.4}/tests/links.md +0 -0
  69. {streamdown-0.35.3 → streamdown-0.35.4}/tests/managerie.md +0 -0
  70. {streamdown-0.35.3 → streamdown-0.35.4}/tests/mandlebrot.md +0 -0
  71. {streamdown-0.35.3 → streamdown-0.35.4}/tests/markdown.md +0 -0
  72. {streamdown-0.35.3 → streamdown-0.35.4}/tests/nested-example.md +0 -0
  73. {streamdown-0.35.3 → streamdown-0.35.4}/tests/no-newline.md +0 -0
  74. {streamdown-0.35.3 → streamdown-0.35.4}/tests/oneline-equal.md +0 -0
  75. {streamdown-0.35.3 → streamdown-0.35.4}/tests/outline.md +0 -0
  76. {streamdown-0.35.3 → streamdown-0.35.4}/tests/output.txt +0 -0
  77. {streamdown-0.35.3 → streamdown-0.35.4}/tests/pvgo_512.jpg +0 -0
  78. {streamdown-0.35.3 → streamdown-0.35.4}/tests/pythonvgo.md +0 -0
  79. {streamdown-0.35.3 → streamdown-0.35.4}/tests/qwen3.md +0 -0
  80. {streamdown-0.35.3 → streamdown-0.35.4}/tests/rerun.zsh +0 -0
  81. {streamdown-0.35.3 → streamdown-0.35.4}/tests/run-tests.sh +0 -0
  82. {streamdown-0.35.3 → streamdown-0.35.4}/tests/slash.md +0 -0
  83. {streamdown-0.35.3 → streamdown-0.35.4}/tests/strip-chunks.sh +0 -0
  84. {streamdown-0.35.3 → streamdown-0.35.4}/tests/table-break.md +0 -0
  85. {streamdown-0.35.3 → streamdown-0.35.4}/tests/table_test.md +0 -0
  86. {streamdown-0.35.3 → streamdown-0.35.4}/tests/test.md +0 -0
  87. {streamdown-0.35.3 → streamdown-0.35.4}/tests/test_input.md +0 -0
  88. {streamdown-0.35.3 → streamdown-0.35.4}/tests/uline.md +0 -0
  89. {streamdown-0.35.3 → streamdown-0.35.4}/tests/wm.md +0 -0
  90. {streamdown-0.35.3 → streamdown-0.35.4}/tools/deploy.sh +0 -0
  91. {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
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] [filenameList ...]
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
- optional arguments:
184
+ options:
184
185
  -h, --help show this help message and exit
185
- -l LOGLEVEL, --loglevel LOGLEVEL
186
+ -l, --loglevel LOGLEVEL
186
187
  Set the logging level
187
- -b BASE, --base BASE Set the hsv base: h,s,v
188
- -c CONFIG, --config CONFIG
189
- Use a custom config override
190
- -w WIDTH, --width WIDTH
191
- Set the width WIDTH
192
- -e EXEC, --exec EXEC Wrap a program EXEC for more 'proper' i/o handling
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] [filenameList ...]
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
- optional arguments:
154
+ options:
154
155
  -h, --help show this help message and exit
155
- -l LOGLEVEL, --loglevel LOGLEVEL
156
+ -l, --loglevel LOGLEVEL
156
157
  Set the logging level
157
- -b BASE, --base BASE Set the hsv base: h,s,v
158
- -c CONFIG, --config CONFIG
159
- Use a custom config override
160
- -w WIDTH, --width WIDTH
161
- Set the width WIDTH
162
- -e EXEC, --exec EXEC Wrap a program EXEC for more 'proper' i/o handling
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.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "streamdown"
7
- version = "0.35.3"
7
+ version = "0.35.4"
8
8
  description = "A streaming markdown renderer for modern terminals with syntax highlighting"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -1039,7 +1039,10 @@ def parse(stream):
1039
1039
 
1040
1040
  def terminal_prep(what):
1041
1041
  if Style.Plaintext:
1042
- return "\n".join([x.rstrip() for x in strip_ansi(what)])
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