Closed jpreynat closed 5 years ago
Currently, the serialization of:
<document> <paragraph> <bold> <code>this</code> </bold> <italic> <code>is</code> </italic> <bold> <code>a</code> </bold> <code>test</code> </paragraph> </document>
leads to the following valid markdown:
**`this`**_`is`_**`a`**`test`
However, deserializing this markdown loses the marks applied around the code and leads to the following document:
<document> <paragraph> <code>thisisatest</code> </paragraph> </document>
This PR adds tests to ensure that deserializing then serializing to markdown correctly returns the same document and fixes the issue.
Currently, the serialization of:
leads to the following valid markdown:
However, deserializing this markdown loses the marks applied around the code and leads to the following document:
This PR adds tests to ensure that deserializing then serializing to markdown correctly returns the same document and fixes the issue.