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 softbreak transformer - #397 #413

Merged
merged 2 commits into from
Jun 18, 2021

Conversation

K-Kumar-01
Copy link
Collaborator

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

Partial fix #397

Changes

  • Softbreak Rule
  • Check for softbreak in transformer and call rule
  • Test for above(acceptance-of-delivery.json)

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

Softbreak Rule
Check for softbreak in transformer and call rule
Test for above(acceptance-of-delivery.json)

Signed-off-by: k-kumar-01 <[email protected]>
@K-Kumar-01 K-Kumar-01 requested a review from algomaster99 June 18, 2021 07:37
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.

See comments.

</w:r>
`;
};
module.exports = { TEXT_RULE, EMPHASIS_RULE, HEADING_RULE, VARIABLE_RULE, SOFTBREAK_RULE };
Copy link
Member

Choose a reason for hiding this comment

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

Insert a line break before this statement.

});
}
it(`should parse ${file.replace('.json', '')}.`, async () => {
await checkRoundTripEquality(`${directoryName}/${file}`);
Copy link
Member

Choose a reason for hiding this comment

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

Rename acceptance-of-delivery to have softbreak in its name. The test cases will be clearer as we don't know what nodes the former contains.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@algomaster99
accpetance-of-delivery is also used in the OoxmlTransformer. So I didn't change the name. Should I create a new file for the softbreak?

Copy link
Member

Choose a reason for hiding this comment

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

Creating a new file would be great. Thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@algomaster99 algomaster99 merged commit 3c3ddb4 into algoo-ooxml Jun 18, 2021
@algomaster99 algomaster99 deleted the k-kumar-01/i397/softbreak-transformer branch June 18, 2021 08:58
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