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

fix(app): Update to React 18 and replace jsx-to-markdown with react-markdown #3009

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

nellh
Copy link
Contributor

@nellh nellh commented Feb 29, 2024

Replaces #3000 by replacing the library used with the more capable react-markdown.

The main extra change needed here was updating to React 18.

Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.24%. Comparing base (1f3ba55) to head (ec88a23).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3009   +/-   ##
=======================================
  Coverage   65.23%   65.24%           
=======================================
  Files         382      382           
  Lines       24608    24612    +4     
  Branches      883      885    +2     
=======================================
+ Hits        16053    16058    +5     
+ Misses       8555     8554    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


<li>
test content
</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to lose a level of nesting. Is this a reasonable interpretation of the input markdown?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the input.

* Markdown document
<br><br>
 * test content

react-markdown is more accurate to GitHub's behavior (not nesting) since the second * is not indented as much as the content of the first list item.

Copy link
Contributor

@effigies effigies left a comment

Choose a reason for hiding this comment

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

Lgtm, then.

@nellh nellh merged commit 7c4907a into master Mar 4, 2024
8 checks passed
@nellh nellh deleted the react-markdown branch March 4, 2024 00:35
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.

None yet

2 participants