Skip to content

refactor(markdown-docx): merge methods for roundtripping conversion between OOXML and CiceroMark into one class - OOXMLTransformer#425

Merged
algomaster99 merged 3 commits intoalgoo-ooxmlfrom
k-kumar-01/refactor-transformers-into-single-transformer
Jul 6, 2021
Merged

refactor(markdown-docx): merge methods for roundtripping conversion between OOXML and CiceroMark into one class - OOXMLTransformer#425
algomaster99 merged 3 commits intoalgoo-ooxmlfrom
k-kumar-01/refactor-transformers-into-single-transformer

Conversation

@K-Kumar-01
Copy link
Copy Markdown
Collaborator

Signed-off-by: K-Kumar-01 kushalkumargupta4@gmail.com

Need for the Change

To make the codebase consistent with the rest i.e. add A<->B conversion methods in the same transformer.

Changes

  • Create toOOXML() in OOXMLTransformer
  • Update imports and exports
  • Fix spellings

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to master from fork:branchname

Create toOOXML() in OOXMLTransformer
Update imports and exports
Fix spellings

Signed-off-by: K-Kumar-01 <kushalkumargupta4@gmail.com>
Copy link
Copy Markdown
Contributor

@algomaster99 algomaster99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you see the other transformers, this refactoring won't make it analogous to them. There should be OoxmlTransformer with two static methods - toCiceroMark and toOoxml. The former method should invoke the ToCiceroMarkVisitor while the latter should invoke the ToOoxmlStringVisitor. markdown-html is exactly structured like this so you can do the same for markdown-docx too.

@K-Kumar-01 K-Kumar-01 requested a review from algomaster99 July 6, 2021 10:42
@K-Kumar-01 K-Kumar-01 force-pushed the k-kumar-01/refactor-transformers-into-single-transformer branch from 09b4379 to 36c3b59 Compare July 6, 2021 10:44
Signed-off-by: K-Kumar-01 <kushalkumargupta4@gmail.com>
@K-Kumar-01 K-Kumar-01 force-pushed the k-kumar-01/refactor-transformers-into-single-transformer branch from 36c3b59 to b844c45 Compare July 6, 2021 10:44
Signed-off-by: K-Kumar-01 <kushalkumargupta4@gmail.com>
Copy link
Copy Markdown
Contributor

@algomaster99 algomaster99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@algomaster99 algomaster99 changed the title refactor(markdown-docx): use OOXMLTransformer for both side conversion refactor(markdown-docx): merge methods for roundtripping conversion between OOXML and CiceroMark into one class - OOXMLTransformer Jul 6, 2021
@algomaster99 algomaster99 merged commit d1adb51 into algoo-ooxml Jul 6, 2021
@algomaster99 algomaster99 deleted the k-kumar-01/refactor-transformers-into-single-transformer branch July 6, 2021 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants