You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a variable is preceded or followed by a soft break, this isn't preserved through the transform.
To Reproduce
bash-3.2$ cat test/data/latedelivery.md
# HELLO! This is the contract editor.
And below is a **clause**.
``` <clause src="https://templates.accordproject.org/archives/[email protected]" clauseid="87721b95-7e43-4441-82c7-b4d4db207e6f">
Late Delivery and Penalty.
----
In case of delayed delivery<if id="forceMajeure" value="%20except%20for%20Force%20Majeure%20cases%2C" whenTrue="%20except%20for%20Force%20Majeure%20cases%2C" whenFalse=""/>
<variable id="seller" value="%22Dan%22"/> (the Seller) shall pay to <variable id="buyer" value="%22Steve%22"/> (the Buyer) for every <variable id="penaltyDuration" value="2%20days"/>
of delay penalty amounting to <variable id="penaltyPercentage" value="10.5"/>% of the total value of the Equipment
whose delivery has been delayed. Any fractional part of a <variable id="fractionalPart" value="days"/> is to be
considered a full <variable id="fractionalPart" value="days"/>. The total amount of penalty shall not however,
exceed <variable id="capPercentage" value="55.0"/>% of the total value of the Equipment involved in late delivery.
If the delay is more than <variable id="termination" value="15%20days"/>, the Buyer is entitled to terminate this Contract.
bash-3.2$ ../markdown-cli/index.js normalize --sample test/data/latedelivery.md --html
10:19:09 AM - info:
HELLO! This is the contract editor.
====
And below is a **clause**.
``` <clause src="https://templates.accordproject.org/archives/[email protected]" clauseid="87721b95-7e43-4441-82c7-b4d4db207e6f"/>
Late Delivery and Penalty.
----
In case of delayed delivery<if id="forceMajeure" value="%20except%20for%20Force%20Majeure%20cases%2C" whenTrue="%20except%20for%20Force%20Majeure%20cases%2C" whenFalse=""/><variable id="seller" value="%22Dan%22"/> (the Seller) shall pay to <variable id="buyer" value="%22Steve%22"/> (the Buyer) for every <variable id="penaltyDuration" value="2%20days"/>
of delay penalty amounting to <variable id="penaltyPercentage" value="10.5"/>% of the total value of the Equipment
whose delivery has been delayed. Any fractional part of a <variable id="fractionalPart" value="days"/> is to be
considered a full <variable id="fractionalPart" value="days"/>. The total amount of penalty shall not however,
exceed <variable id="capPercentage" value="55.0"/>% of the total value of the Equipment involved in late delivery.
If the delay is more than <variable id="termination" value="15%20days"/>, the Buyer is entitled to terminate this Contract.
The text was updated successfully, but these errors were encountered:
Describe the bug
If a variable is preceded or followed by a soft break, this isn't preserved through the transform.
To Reproduce
The text was updated successfully, but these errors were encountered: