Skip to main content
added 64 characters in body
Source Link
jamesdlin
  • 766
  • 4
  • 10

I've seen Blockquote rewrap destroys code, but that question (and answer) are about the situation where a user mistakenly uses the quote button instead of the code button.

I instead want to use both. For example, I might want to quote code from another source (often from the question). If I have some code explicitly enclosed in triple-backticks:

```c
int main(void) {
    printf("Hello world!\n");
}
```

then selecting that and pressing the quote button gives me:

> ```c int main(void) {
>     printf("Hello world!\n"); } ```

I cannot imagine that this is deliberate. I claim that text in triple-backticks should be left alone, and each line instead should just be prefixed with > .

Update:

Trying [the Stacks editor](https://meta.stackexchange.com/questions/360033/opt-in-alpha-test-for-a-new-stacks-editor) in Markdown mode, I seem to get an even worse monstrosity:
 > ```c> c> int main(void) { > {> printf("Hello world!\n");)> ;> }
 > ````> 

Trying the Stacks editor in Markdown mode(Never mind, I seem to getthat is an even worse monstrosity:unrelated bug.)

 > ```c> c> int main(void) { > {> printf("Hello world!\n");)> ;> }
 > ````> 

I've seen Blockquote rewrap destroys code, but that question (and answer) are about the situation where a user mistakenly uses the quote button instead of the code button.

I instead want to use both. For example, I might want to quote code from another source (often from the question). If I have some code explicitly enclosed in triple-backticks:

```c
int main(void) {
    printf("Hello world!\n");
}
```

then selecting that and pressing the quote button gives me:

> ```c int main(void) {
>     printf("Hello world!\n"); } ```

I cannot imagine that this is deliberate. I claim that text in triple-backticks should be left alone, and each line instead should just be prefixed with > .

Update:

Trying the Stacks editor in Markdown mode, I seem to get an even worse monstrosity:

 > ```c> c> int main(void) { > {> printf("Hello world!\n");)> ;> }
 > ````> 

I've seen Blockquote rewrap destroys code, but that question (and answer) are about the situation where a user mistakenly uses the quote button instead of the code button.

I instead want to use both. For example, I might want to quote code from another source (often from the question). If I have some code explicitly enclosed in triple-backticks:

```c
int main(void) {
    printf("Hello world!\n");
}
```

then selecting that and pressing the quote button gives me:

> ```c int main(void) {
>     printf("Hello world!\n"); } ```

I cannot imagine that this is deliberate. I claim that text in triple-backticks should be left alone, and each line instead should just be prefixed with > .

Update:

Trying [the Stacks editor](https://meta.stackexchange.com/questions/360033/opt-in-alpha-test-for-a-new-stacks-editor) in Markdown mode, I seem to get an even worse monstrosity:
 > ```c> c> int main(void) { > {> printf("Hello world!\n");)> ;> }
 > ````> 

(Never mind, that is an unrelated bug.)

added 184 characters in body
Source Link
jamesdlin
  • 766
  • 4
  • 10

I've seen Blockquote rewrap destroys code, but that question (and answer) are about the situation where a user mistakenly uses the quote button instead of the code button.

I instead want to use both. For example, I might want to quote code from another source (often from the question). If I have some code explicitly enclosed in triple-backticks:

```c
int main(void) {
    printf("Hello world!\n");
}
```

then selecting that and pressing the quote button gives me:

> ```c int main(void) {
>     printf("Hello world!\n"); } ```

I cannot imagine that this is deliberate. I claim that text in triple-backticks should be left alone, and each line instead should just be prefixed with > .

Update:

Trying the Stacks editor in Markdown mode, I seem to get an even worse monstrosity:

 > ```c> c> int main(void) { > {> printf("Hello world!\n");)> ;> }
 > ````> 

I've seen Blockquote rewrap destroys code, but that question (and answer) are about the situation where a user mistakenly uses the quote button instead of the code button.

I instead want to use both. For example, I might want to quote code from another source (often from the question). If I have some code explicitly enclosed in triple-backticks:

```c
int main(void) {
    printf("Hello world!\n");
}
```

then selecting that and pressing the quote button gives me:

> ```c int main(void) {
>     printf("Hello world!\n"); } ```

I cannot imagine that this is deliberate. I claim that text in triple-backticks should be left alone, and each line instead should just be prefixed with > .

I've seen Blockquote rewrap destroys code, but that question (and answer) are about the situation where a user mistakenly uses the quote button instead of the code button.

I instead want to use both. For example, I might want to quote code from another source (often from the question). If I have some code explicitly enclosed in triple-backticks:

```c
int main(void) {
    printf("Hello world!\n");
}
```

then selecting that and pressing the quote button gives me:

> ```c int main(void) {
>     printf("Hello world!\n"); } ```

I cannot imagine that this is deliberate. I claim that text in triple-backticks should be left alone, and each line instead should just be prefixed with > .

Update:

Trying the Stacks editor in Markdown mode, I seem to get an even worse monstrosity:

 > ```c> c> int main(void) { > {> printf("Hello world!\n");)> ;> }
 > ````> 
Source Link
jamesdlin
  • 766
  • 4
  • 10

Quote button shouldn't reformat code in triple-backticks

I've seen Blockquote rewrap destroys code, but that question (and answer) are about the situation where a user mistakenly uses the quote button instead of the code button.

I instead want to use both. For example, I might want to quote code from another source (often from the question). If I have some code explicitly enclosed in triple-backticks:

```c
int main(void) {
    printf("Hello world!\n");
}
```

then selecting that and pressing the quote button gives me:

> ```c int main(void) {
>     printf("Hello world!\n"); } ```

I cannot imagine that this is deliberate. I claim that text in triple-backticks should be left alone, and each line instead should just be prefixed with > .