Releases: accordproject/markdown-transform
Markdown Transform v0.10.1
🐛 This is a bug fix release, adding proper support for conditional variables in the HTML transform (#189)
Markdown Transform v0.10.0
💥 This is a breaking change release, with changes to how conditional variables in CiceroMark are represented, and removing dependency on the Slate package. Please consult the notes below for how to migrate to this version from version 0.9.x
or earlier.
CiceroMark
#162 : Changes the markdown and CiceroMark DOM for conditional variables
If you use markdown with ciceromark variables, you will have to change your document to include new fields in the <if .../>
inlines for conditional variables. That HTML inline should now include two new attributes whenTrue
and whenFalse
containing the text for both when the condition is true
and false
. That text should be consistent with the one in the value
attribute.
For instance, instead of:
<if id="forceMajeure" value="%20except%20for%20Force%20Majeure%20cases%2C" />
<if id="forceMajeure" value="" />
You should use:
<if id="forceMajeure" value="%20except%20for%20Force%20Majeure%20cases%2C" whenTrue="%20except%20for%20Force%20Majeure%20cases%2C" whenFalse=""/>
<if id="forceMajeure" value="" whenTrue="%20except%20for%20Force%20Majeure%20cases%2C" whenFalse=""/>
Slate
#175 #181 Slate is no longer a dependency for the markdown-slate
package, but operates on the JSON representation for the Slate document object model instead.
If your code relies on the following calls in the markdown-transform
package, you will have to pass JSON instead of a Slate value or transform the JSON back into a Slate value in your code:
SlateTransformer.toCiceroMark()
andSlateTransformer.toCommonMark()
now expect a Slate JSON representation rather than a Slate value.SlateTransformer.fromCiceroMark()
andSlateTransformer.fromCommonMark()
now return a Slate JSON representation rather than a Slate value.
In your code, you can use the following to convert between Slate values and JSON:
const Value = require('slate').Value;
Value.fromJSON(json); // to go from JSON to Slate value
Value.toJSON(value); // to go from Slate value to JSON
Markdown Transform v0.9.10
Markdown Transform v0.9.9
Markdown Transform v0.9.8
Markdown Transform v0.9.7
🐛 Bug Fixes
#154 : More robust support for nested lists and blockquotes, with a revised handling of the way we print new lines and prefixes in markdown-common
#163 : Add escaping when generating markdown from the content of text node, avoiding printing incorrect markdown markup
#142 : Fixes babel configuration and build to not create source map in published packages
Markdown Transform v0.9.6
🐛 Bug Fixes
- #154 : Fixes to markdown generation for multi-line and nested block quotes in CommonMark transform (@jeromesimeon)
- #156 : Fixes for code block generation in Slate transform (@jeromesimeon)
Markdown Transform v0.9.5
🐛 Bug Fix
#155 : Replaces <wbr>
with \n
for softbreaks in the html transform due to it being semantically incorrect and causing issues when rendered by the browser (@DianaLease)
Markdown Transform v0.9.4
🐛 This release fixes a bug with CiceroMark variables inside emphasis (italics and bold) in the Slate transform (#148).
Markdown Transform v0.9.3
🐛 This release fixes a critical bug with empty text nodes removals in the Slate to CiceroMark transform (#147).