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
Testing for the existing ciceromark to ooxml transform using jest, chai, xml-js packages can be implemented which will enable easier debugging.
Context
Detailed Description
The XML generated in the document directly is slightly different from what is generated upon transformation. Details such as font properties exist in the XML document while they aren't present when the ciceromark is transformed to XML, hence it must be taken care of.
To avoid any indentation, whitespace, and other problems that lead to failing the test cases, the xml-js package needs to be used.
Error is received at Word.Style.heading1 in
The reason being that it does not recognize Word as a defined variable and hence, a possible solution is to create a duplicate file for the CicerMarkToOoxml.js and replace Word.Style.heading# to "Word.Style.heading#" which ultimately ignores the error and runs the tests successfully.
Currently, on implementing the above approach, the test case passed for [email protected].
The text was updated successfully, but these errors were encountered:
Discussion 🗣
Testing for the existing ciceromark to ooxml transform using jest, chai, xml-js packages can be implemented which will enable easier debugging.
Context
Detailed Description
The XML generated in the document directly is slightly different from what is generated upon transformation. Details such as font properties exist in the XML document while they aren't present when the ciceromark is transformed to XML, hence it must be taken care of.
To avoid any indentation, whitespace, and other problems that lead to failing the test cases, the xml-js package needs to be used.
Error is received at Word.Style.heading1 in
cicero-word-add-in/src/utils/CiceroMarkToOOXML.js
Line 8 in c4b64b6
The reason being that it does not recognize Word as a defined variable and hence, a possible solution is to create a duplicate file for the CicerMarkToOoxml.js and replace Word.Style.heading# to "Word.Style.heading#" which ultimately ignores the error and runs the tests successfully.
Currently, on implementing the above approach, the test case passed for [email protected].
The text was updated successfully, but these errors were encountered: