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

rust parser documentation: Wrong documentation for MarkdownParser::parse_with #168

Open
janWilejan opened this issue Nov 3, 2024 · 0 comments

Comments

@janWilejan
Copy link

The docs for MarkdownParser::parse_with seem to have been copied verbatim from MarkdownParser::parse.

What is the difference between parse and parse_with?

  • What is the callback supposed to do?
  • I assume you need to return a sub-string starting at the given position.
  • Are there minimum / maximum length requirements?
  • Does the slice need to start / end on a Unicode character boundary?
  • An example callback would be useful (like how to use this with Reader).
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

No branches or pull requests

1 participant