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

Change the return type of count_code_block_tokens #66

Merged
merged 2 commits into from
Jan 27, 2024

Conversation

dalance
Copy link
Contributor

@dalance dalance commented Jan 27, 2024

This PR changes the return type of count_code_block_tokens.
By this change, the function can show "user can specify an arbitrary code_block_token_count" through None return value.

Refer: #20

…AULT_CODE_BLOCK_TOKEN_COUNT`.

That way it's possible to correctly determine the amount of fenced code-block tokens
needed to render all given events such that code-blocks are retained.
@Byron Byron force-pushed the fix_count_code_block_tokens branch from 4c0b4b2 to e339365 Compare January 27, 2024 08:04
@Byron Byron merged commit ee42335 into Byron:main Jan 27, 2024
1 check passed
@Byron
Copy link
Owner

Byron commented Jan 27, 2024

Thanks a lot! This time I invested more time into the review and hopefully made reasonable improvements.

The new release is here: https://github.com/Byron/pulldown-cmark-to-cmark/releases/tag/v11.2.0

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