line-markdown-parser 0.1.5__tar.gz → 0.1.6__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 (25) hide show
  1. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/CHANGELOG.md +4 -0
  2. {line_markdown_parser-0.1.5/line_markdown_parser.egg-info → line_markdown_parser-0.1.6}/PKG-INFO +1 -1
  3. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/docs/spec.md +2 -0
  4. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/__init__.py +1 -1
  5. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/converter.py +5 -1
  6. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6/line_markdown_parser.egg-info}/PKG-INFO +1 -1
  7. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/pyproject.toml +1 -1
  8. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/LICENSE +0 -0
  9. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/MANIFEST.in +0 -0
  10. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/README-ja.md +0 -0
  11. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/README.md +0 -0
  12. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/_build_backend.py +0 -0
  13. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_blocks.py +0 -0
  14. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_flex.py +0 -0
  15. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_inline.py +0 -0
  16. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_inline_renderer.py +0 -0
  17. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_renderer.py +0 -0
  18. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_syntax.py +0 -0
  19. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_uri.py +0 -0
  20. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/py.typed +0 -0
  21. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/SOURCES.txt +0 -0
  22. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/dependency_links.txt +0 -0
  23. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/requires.txt +0 -0
  24. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/top_level.txt +0 -0
  25. {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/setup.cfg +0 -0
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.6 — 2026-10-23
4
+
5
+ - Balance standalone bubble insets by removing the first block's leading margin, including after long-message splitting. Keep spacing between blocks and raw body-component output unchanged.
6
+
3
7
  ## 0.1.5 — 2026-10-22
4
8
 
5
9
  - Avoid repeated suffix scans for unclosed inline HTML emphasis tags.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: line-markdown-parser
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Convert LLM Markdown into readable LINE Flex Messages without runtime dependencies.
5
5
  Author: line-markdown-parser contributors
6
6
  License-Expression: MIT
@@ -31,6 +31,8 @@ estimate_flex_payload_size(text) -> int
31
31
 
32
32
  Every call returns fresh mutable dictionaries; modifying one message does not affect other messages or later calls. Candidate layouts may be reused within a call, but input and output are not cached across calls. Visual properties and exact component nesting may change without changing this contract.
33
33
 
34
+ Standalone bubbles use equal outer padding and no leading margin on their first body component. Spacing between blocks is preserved. `build_flex_contents` returns block margins unchanged so applications can compose their own containers.
35
+
34
36
  ## Limits and splitting
35
37
 
36
38
  - `max_length` is a positive integer measured in Python string characters. It is a source-length limit, not a LINE API character limit.
@@ -9,7 +9,7 @@ from .converter import (
9
9
  split_long_text,
10
10
  )
11
11
 
12
- __version__ = "0.1.5"
12
+ __version__ = "0.1.6"
13
13
  __all__ = [
14
14
  "DEFAULT_MAX_FLEX_PAYLOAD_BYTES",
15
15
  "build_flex_contents",
@@ -53,13 +53,17 @@ def _body_contents(text: str) -> list[FlexComponent]:
53
53
 
54
54
 
55
55
  def _bubble(text: str) -> FlexBubble:
56
+ contents = _body_contents(text)
57
+ if contents:
58
+ # Block margins separate siblings; the outer padding defines the inset.
59
+ contents[0]["margin"] = "none"
56
60
  return {
57
61
  "type": "bubble",
58
62
  "size": "giga",
59
63
  "body": {
60
64
  "type": "box",
61
65
  "layout": "vertical",
62
- "contents": _body_contents(text),
66
+ "contents": contents,
63
67
  "paddingAll": "16px",
64
68
  "backgroundColor": "#FFFFFF",
65
69
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: line-markdown-parser
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: Convert LLM Markdown into readable LINE Flex Messages without runtime dependencies.
5
5
  Author: line-markdown-parser contributors
6
6
  License-Expression: MIT
@@ -5,7 +5,7 @@ backend-path = ["."]
5
5
 
6
6
  [project]
7
7
  name = "line-markdown-parser"
8
- version = "0.1.5"
8
+ version = "0.1.6"
9
9
  description = "Convert LLM Markdown into readable LINE Flex Messages without runtime dependencies."
10
10
  readme = "README.md"
11
11
  requires-python = ">=3.10"