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

Formatting fails depending on surrounding text #169

Open
TonyGravagno opened this issue May 9, 2022 · 0 comments
Open

Formatting fails depending on surrounding text #169

TonyGravagno opened this issue May 9, 2022 · 0 comments

Comments

@TonyGravagno
Copy link

If there is a line of text above or below selected text to be highlighted, the formatting fails. If the first line of selected text is not left-aligned, formatting fails.

"Failure" is a result where only part of the code is formatted and the rest is truncated, or maybe all of the code is deleted. (Ctrl-Z to recover)

Examples:

This describes a block of code:
code_line1
code_line2
This summarizes the code.

If the two lines of code are selected where they are, from 'c' in line1 to '2' in line2, formatting fails. Separation is required:

This describes a block of code, preceded by an empty line: 

code_line1
code_line2

This summarizes the code, which is followed by an empty line.

If the code is indented, formatting fails:

This describes a block of code, preceded by an empty line: 

    code_line1_indented
         code_line2 (indented or not)

This summarizes the code, which is followed by an empty line.

I suspect this is related to the issue reported in #90.

HTH

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