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: add markdown divider encoder parser #639

Conversation

hamishjohnson
Copy link
Contributor

Adds a markdown divider node encoder parser

@CLAassistant
Copy link

CLAassistant commented Jan 1, 2024

CLA assistant check
All committers have signed the CLA.

@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jan 2, 2024

@hamishjohnson Please fix the ci issues.

@hamishjohnson
Copy link
Contributor Author

@LucasXu0 Fixed the test - how can I fix the commit message without force push?

@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jan 5, 2024

@hamishjohnson I can squashed your commits, so no need to fix the commit message this time.

Copy link

codecov bot commented Jan 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (de94a58) 78.13% compared to head (5d00fd4) 76.70%.
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #639      +/-   ##
==========================================
- Coverage   78.13%   76.70%   -1.43%     
==========================================
  Files         291      294       +3     
  Lines       12763    12973     +210     
==========================================
- Hits         9972     9951      -21     
- Misses       2791     3022     +231     

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

String transform(Node node, DocumentMarkdownEncoder? encoder) {
final children = encoder?.convertNodes(node.children);
String markdown = '---\n';
if (children != null && children.isNotEmpty) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The children of the divider node must be empty.

@hamishjohnson
Copy link
Contributor Author

Just removed that code completely now

@LucasXu0 LucasXu0 merged commit c8ba248 into AppFlowy-IO:main Jan 8, 2024
9 of 11 checks passed
q200892907 added a commit to q200892907/appflowy-editor that referenced this pull request Jan 10, 2024
* main:
  fix: move cursor up/down issue (AppFlowy-IO#657)
  fix: chinese IME
  feat: add markdown divider encoder parser (AppFlowy-IO#639)
  feat: support updating cursor position via spacebar (AppFlowy-IO#655)
  feat: support customizing cursor width (AppFlowy-IO#654)
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

3 participants