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

fix code block doubling pastes #208

Merged
merged 1 commit into from
Jun 30, 2024
Merged

fix code block doubling pastes #208

merged 1 commit into from
Jun 30, 2024

Conversation

cloverich
Copy link
Owner

When pasting code into code block, the content was doubling. This was caused by the insertData routine being outside of the multi-line block. But after fixing, I discovered another bug where the normalization routine was putting code_lines outside of blocks, which resulted in the serialized content being removed (because mdast doesnt know about code_lines). Anyways, outright removing the normalization logic seems to fix so... here we are.

Closes #204

When pasting code into code block, the content was doubling. This was caused by the insertData routine being outside of the multi-line block. But after fixing, I discovered another bug where the normalization routine was putting code_lines outside of blocks, which resulted in the serialized content being removed (because mdast doesnt know about code_lines). Anyways, outright removing the normalization logic seems to fix so... here we are.
@cloverich cloverich merged commit 44aa5ce into master Jun 30, 2024
2 checks passed
@cloverich cloverich deleted the code_block_line_paste branch June 30, 2024 23:27
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.

Pasting into code block doubles the content
1 participant