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

Don't copy above the selection in code blocks #159

Open
wheelercj opened this issue Nov 17, 2024 · 0 comments
Open

Don't copy above the selection in code blocks #159

wheelercj opened this issue Nov 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@wheelercj
Copy link
Collaborator

When part of the middle of a code block is selected and copied with Stardown, the result does not include the rest of the code block under the selection, but does include the rest of the code block above the selection.

For example, if on Basic Syntax | Markdown Guide you select <title>Test</title> and copy with Stardown, the output is:

```
<html>
  <head>
    <title>Test</title>
```

This should be changed to keep only the selection and wrap it with <pre> and <code> elements instead of expanding the selection until it includes them. The output should be:

```
<title>Test</title>
```

@wheelercj wheelercj added the enhancement New feature or request label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant