Skip to content

Releases: accordproject/markdown-transform

Markdown Transform v0.10.1

05 Mar 15:33
Compare
Choose a tag to compare
Pre-release

🐛 This is a bug fix release, adding proper support for conditional variables in the HTML transform (#189)

Markdown Transform v0.10.0

18 Feb 15:32
Compare
Choose a tag to compare
Pre-release

💥 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() and SlateTransformer.toCommonMark() now expect a Slate JSON representation rather than a Slate value.
  • SlateTransformer.fromCiceroMark() and SlateTransformer.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

15 Feb 18:44
Compare
Choose a tag to compare
Pre-release

This is another bug fixes and code quality release.

🐛 Bug Fixes

  • #176 & #173 & #150 : Proper handling for HTML blocks and inlines

🏠 Code quality

  • A few more Slate transform tests and some code cleanup

Markdown Transform v0.9.9

12 Feb 14:17
Compare
Choose a tag to compare
Pre-release

This is a bug fixes and code quality release.

🐛 Bug Fixes

#164 : Links can now handle text annotations (e.g., bold, code inlines)

🏠 Code quality

#174 : unused, duplicated Slate quote removed, we are using block_quote instead
#160 : Various improvements to code quality and test coverage

Markdown Transform v0.9.8

08 Feb 05:24
Compare
Choose a tag to compare
Pre-release

🐛 Bug Fixes

#167 : Additional fixes for nested block quotes and lists
#168 : More specific escaping for heading markers in text nodes
#169 : Ensure empty markdown is transformed to a document with an empty paragraph

Markdown Transform v0.9.7

07 Feb 13:56
Compare
Choose a tag to compare
Pre-release

🐛 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

05 Feb 17:39
Compare
Choose a tag to compare
Pre-release

🐛 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

28 Jan 14:43
6d2e934
Compare
Choose a tag to compare
Pre-release

🐛 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

18 Dec 16:51
Compare
Choose a tag to compare
Pre-release

🐛 This release fixes a bug with CiceroMark variables inside emphasis (italics and bold) in the Slate transform (#148).

Markdown Transform v0.9.3

17 Dec 13:00
Compare
Choose a tag to compare
Pre-release

🐛 This release fixes a critical bug with empty text nodes removals in the Slate to CiceroMark transform (#147).