fix(rhema-code): indent list items' paragraphs in the transcript

The markdown renderer tracked list depth only to pick a marker. A
paragraph that follows a blank row inside an item started at column 0,
so a tool's catalog lines and its "Where it runs" paragraph read as
text after the list rather than part of the bullet. `rhema system show`
previews the prompt through this renderer, which is where it showed.

An item now records its content column, marker width included, and a
row the renderer starts inside one is padded to it. The paragraph that
introduces a sublist keeps it attached: the blank row the paragraph
asks for at its end is taken back, the hug a sublist already got when
no lead-in preceded it.

The tool sections put a blank row between the row and its description
so the description is a paragraph of the item — the shape the indent
applies to, where a soft break would have joined it to the schema.
This commit is contained in:
vhaudiquet committed 2026-11-11 18:13:17 +01:00
1 parent 1663dee661
commit 762b49eaf4
1 file changed
+1
+1
View File
@@ -24,6 +24,7 @@ what it is for. The arguments are the JSON schema a call must satisfy.
{% for tool in tools %} {% for tool in tools %}
- {{ tool.name }} | {{ tool.parameters | json }} - {{ tool.name }} | {{ tool.parameters | json }}
{{ tool.description | indent(2, true) }} {{ tool.description | indent(2, true) }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}