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

Update Lexer section in USING_PRO.md #3317

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Conversation

poirierlouis
Copy link
Contributor

Marked version: all

Markdown flavor: n/a

Description

Expectation

Documentation should be explicit for new users when using Lexer.

Result

User is now informed of different behaviors when using marked.lexer or new marked.Lexer.

What was attempted

n/a

Contributor

  • Test(s) exist to ensure functionality and minimize regression (if no tests added, list tests covering this PR); or,
  • no tests required for this PR.
  • If submitting new feature, it has been documented in the appropriate places.

Committer

In most cases, this should be a different person than the contributor.

- Clarified that `marked.lexer()` does not retain tokens from previous calls.
- Clarified that `new marked.Lexer().lex()` accumulates tokens from successive calls.

Closes markedjs#3316.
Copy link

vercel bot commented Jun 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marked-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 9, 2024 11:21am

Copy link
Member

@UziTech UziTech left a comment

Choose a reason for hiding this comment

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

thanks 💯

@UziTech UziTech merged commit 481ac3b into markedjs:master Jun 10, 2024
8 checks passed
@poirierlouis poirierlouis deleted the patch-1 branch June 10, 2024 10:00
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.

Unexpected behavior when using marked.lexer or new marked.Lexer
2 participants