Skip to content

feat(markdown-docx): add softbreak transformer - #397#413

Merged
algomaster99 merged 2 commits intoalgoo-ooxmlfrom
k-kumar-01/i397/softbreak-transformer
Jun 18, 2021
Merged

feat(markdown-docx): add softbreak transformer - #397#413
algomaster99 merged 2 commits intoalgoo-ooxmlfrom
k-kumar-01/i397/softbreak-transformer

Conversation

@K-Kumar-01
Copy link
Copy Markdown
Collaborator

Signed-off-by: k-kumar-01 kushalkumargupta4@gmail.com

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 <kushalkumargupta4@gmail.com>
@K-Kumar-01 K-Kumar-01 requested a review from algomaster99 June 18, 2021 07:37
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.

See comments.

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

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
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Signed-off-by: k-kumar-01 <kushalkumargupta4@gmail.com>
@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