started to overhaul MardownEditor.svelte

This commit is contained in:
2025-07-11 09:07:38 +02:00
parent 713e6ff8ff
commit c37b1de1b0
3 changed files with 29 additions and 6 deletions

View File

@@ -188,6 +188,7 @@ public final class Position implements Mappable {
}
public Map<String, Object> renderToMap() {
var descr = Map.of(SOURCE,description,RENDERED,markdown(description));
var map = new HashMap<String, Object>();
map.put(FIELD_DOCUMENT_ID, docId);
map.put(NUMBER, num);
@@ -195,7 +196,7 @@ public final class Position implements Mappable {
map.put(FIELD_AMOUNT, amount);
map.put(FIELD_UNIT, unit);
map.put(TITLE, title);
map.put(DESCRIPTION, markdown(description));
map.put(DESCRIPTION, descr);
map.put(FIELD_UNIT_PRICE, unitPrice);
map.put(FIELD_TAX, tax);
map.put(FIELD_TIME_ID, timeId);