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

Quote support for HTML => MD Conversion #402

Merged
merged 3 commits into from
Jul 29, 2021

Conversation

parasharrajat
Copy link
Member

@parasharrajat parasharrajat commented Jul 28, 2021

TAG_REVIEWER will you please review this?

[Explanation of the change or anything fishy that is going on]
Added support for HTML quote parsing in HTML to MD conversion.

  1. It first grabs the whole string between <blockquote> tags.
  2. we divide each new line in the text with > line text
  3. if line Text is \n we skip this char to remove the extra line and conversion would be > .

Fixed Issues

$ Expensify/App#4188

Tests

  1. What unit/integration tests cover your change? What autoQA tests cover your change?
    I have added Unit tests that cover cases where Quotes can also contain other HTML tags or newlines.

  2. What tests did you perform that validates your changes worked?
    I used a couple of quoted texts and paste them into the Composer in the E.cash to test my solution.

QA

  1. What does QA need to do to validate your changes?
    Try to paste copied quotes from other websites to the E.cash.

  2. What areas do they need to test for regressions?
    Messaging on E.cash.

@parasharrajat parasharrajat requested a review from a team as a code owner July 28, 2021 18:57
@MelvinBot MelvinBot requested review from Luke9389 and removed request for a team July 28, 2021 18:57
@parasharrajat parasharrajat changed the title Quote support for HTML => Conversion Quote support for HTML => MD Conversion Jul 29, 2021
@roryabraham
Copy link
Contributor

Grabbing this because @Luke9389 is OOO

@roryabraham
Copy link
Contributor

@parasharrajat Please fill out the PR template

@parasharrajat
Copy link
Member Author

@roryabraham Updated.

lib/ExpensiMark.js Outdated Show resolved Hide resolved
@parasharrajat
Copy link
Member Author

Updated.

Copy link
Contributor

@roryabraham roryabraham left a comment

Choose a reason for hiding this comment

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

Looking good

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