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

Diff lines when deciding what blocks to update #335

Closed
wants to merge 1 commit into from

Conversation

obask
Copy link
Collaborator

@obask obask commented Mar 29, 2024

Also add a parameter to not apply optimizations to documents which could be modified.

Added workarounds for LinkReferenceDefinition which shouldn't be a top level node.

Also add a parameter to not apply optimizations to
documents which could be modified.

Added workarounds for LinkReferenceDefinition which shouldn't be
a top level node.
@obask obask requested a review from rock3r March 29, 2024 04:32
@obask obask self-assigned this Mar 29, 2024
@rock3r rock3r added the feature New feature or request label Mar 29, 2024
import org.junit.Assert.assertEquals
import org.junit.Test

class MarkdownProcessorTest {
Copy link
Collaborator

Choose a reason for hiding this comment

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

For such a big feature I would expect a ton of tests, can you please add more covering all possile cases?

E.g.:

  • First block edited
  • Last block edited
  • Block in the middle edited
  • Blocks merged
  • Blocks split
  • Blocks deleted
  • Blocks added

Etc

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

PTAL #336

obask added a commit to obask/jewel that referenced this pull request Mar 29, 2024
@obask obask marked this pull request as draft March 30, 2024 04:43
@obask obask closed this Mar 30, 2024
@obask obask deleted the speed-up-parsing-of-unchanged-blocks branch March 30, 2024 04:46
rock3r pushed a commit that referenced this pull request Mar 30, 2024
* Diff lines when deciding what blocks to update

Also add a parameter to not apply optimizations to
documents which could be modified.

Added workarounds for LinkReferenceDefinition which shouldn't be
a top level node.

* Add more parser tests #335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve CommonMark parsing speed by recomputing only the modified fragments.
2 participants