streamdown 0.28.0__py3-none-any.whl → 0.29.0__py3-none-any.whl

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/sd.py CHANGED
@@ -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+(.*)", line)
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__)),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: streamdown
3
- Version: 0.28.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 Copyable
59
+ Set `PrettyBroken` and `PrettyPad` to False in your toml (see below) to make Streamdown ensure code is always cleanly mouse copyable
60
60
  ![Handle That Mandle](https://github.com/user-attachments/assets/a27aa70c-f691-4796-84f0-c2eb18c7de23)
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
  ![doggie](https://github.com/user-attachments/assets/81c43983-68cd-40c1-b1d5-aa3a52004504)
66
66
 
67
- ### hyperlinks (OSC 8) and clipboard (OSC 52)
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)
@@ -0,0 +1,9 @@
1
+ streamdown/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ streamdown/sd.py,sha256=naF311CdLgavOdBhfK-o5BU00ktu0LrggOFRtE4LJ9o,44286
3
+ streamdown/plugins/README.md,sha256=KWqYELs9WkKJmuDzYv3cvPlZMkArsNCBUe4XDoTLjLA,1143
4
+ streamdown/plugins/latex.py,sha256=xZMGMdx_Sw4X1piZejXFHfEG9qazU4fGeceiMI0h13Y,648
5
+ streamdown-0.29.0.dist-info/METADATA,sha256=MAipmHgnjN5SOFFSXP1vYEDNxcOASLceL1-Ejd8fK3c,9751
6
+ streamdown-0.29.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ streamdown-0.29.0.dist-info/entry_points.txt,sha256=HroKFsFMGf_h9PRTE96NjvjJQWupMW5TGP5RGUr1O_Q,74
8
+ streamdown-0.29.0.dist-info/licenses/LICENSE.MIT,sha256=SnY46EPirUsF20dZDR8HpyVgS2_4Tjxuc6f-4OdqO7U,1070
9
+ streamdown-0.29.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- streamdown/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- streamdown/sd.py,sha256=sW2Hik5TXM7kh4U_BoJ2IjPUtewuUt0oF3XFoYDfRqw,44298
3
- streamdown/plugins/README.md,sha256=KWqYELs9WkKJmuDzYv3cvPlZMkArsNCBUe4XDoTLjLA,1143
4
- streamdown/plugins/latex.py,sha256=xZMGMdx_Sw4X1piZejXFHfEG9qazU4fGeceiMI0h13Y,648
5
- streamdown-0.28.0.dist-info/METADATA,sha256=ZhCNtksYdkp0o37Hg8kDSDOZvy01DdBu26S7RAGVZq8,9726
6
- streamdown-0.28.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
- streamdown-0.28.0.dist-info/entry_points.txt,sha256=HroKFsFMGf_h9PRTE96NjvjJQWupMW5TGP5RGUr1O_Q,74
8
- streamdown-0.28.0.dist-info/licenses/LICENSE.MIT,sha256=SnY46EPirUsF20dZDR8HpyVgS2_4Tjxuc6f-4OdqO7U,1070
9
- streamdown-0.28.0.dist-info/RECORD,,