Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(markdown-docx): add variable transformer - #397 #410

Merged
merged 2 commits into from
Jun 17, 2021

Conversation

K-Kumar-01
Copy link
Collaborator

Signed-off-by: k-kumar-01 [email protected]

Partial fix #397

Adds the roundtrip transformation for variable.

Changes

  • Add helpers and rule
  • Add the transformation logic
  • Add the test for above

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

Add helpers and rule
Add the transformation logic
Add the test for above

Signed-off-by: k-kumar-01 <[email protected]>
Copy link
Member

@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.

Minor changes, then we would be good to go.

I also want you to keep a mental note that the CiceroMarkToOOXML transformer should also return the counter object as this would be used in MS Word Add-in. If we don't return it, we would have to parse the OOXML string in the add-in to generate it, which is very prone to error. Since this PR works well on its own, you can do that in a separate PR but first, just understand why the counter variable is important.

<w:rPr>
<w:color w:val="000000"/>
<w:sz w:val="24"/>
<w:highlight w:val="green"/>
Copy link
Member

Choose a reason for hiding this comment

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

Remove this for now. We will discuss later if we want to highlight variables or now.

packages/markdown-docx/src/CiceroMarkToOOXML/rules.js Outdated Show resolved Hide resolved
Remove highlight
Remove default colour

Signed-off-by: k-kumar-01 <[email protected]>
@K-Kumar-01
Copy link
Collaborator Author

@algomaster99
I have updated the PR. Let me know if there are any changes required.

Copy link
Member

@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.

🎉

@algomaster99 algomaster99 merged commit 4497ac7 into algoo-ooxml Jun 17, 2021
@algomaster99 algomaster99 deleted the k-kumar-01/i397/variable-transformer branch June 17, 2021 08:47
algomaster99 pushed a commit that referenced this pull request Jun 17, 2021
algomaster99 pushed a commit that referenced this pull request Jun 17, 2021
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