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.
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/CHANGELOG.md +4 -0
- {line_markdown_parser-0.1.5/line_markdown_parser.egg-info → line_markdown_parser-0.1.6}/PKG-INFO +1 -1
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/docs/spec.md +2 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/__init__.py +1 -1
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/converter.py +5 -1
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6/line_markdown_parser.egg-info}/PKG-INFO +1 -1
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/pyproject.toml +1 -1
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/LICENSE +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/MANIFEST.in +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/README-ja.md +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/README.md +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/_build_backend.py +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_blocks.py +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_flex.py +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_inline.py +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_inline_renderer.py +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_renderer.py +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_syntax.py +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_uri.py +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/py.typed +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/SOURCES.txt +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/dependency_links.txt +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/requires.txt +0 -0
- {line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/top_level.txt +0 -0
- {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.
|
|
@@ -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.
|
|
@@ -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":
|
|
66
|
+
"contents": contents,
|
|
63
67
|
"paddingAll": "16px",
|
|
64
68
|
"backgroundColor": "#FFFFFF",
|
|
65
69
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser/_inline_renderer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{line_markdown_parser-0.1.5 → line_markdown_parser-0.1.6}/line_markdown_parser.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|