Yes, I know that. What I’m saying is, I don’t think most users know “paste as plain text” is even an option. It pretty much negates the usefulness of code blocks.
You can turn formatted pasting off globally in your site settings if you are a site owner.
Thanks for letting me know. I’m not the site owner, but I’ll bring up that option with the site owner and see what they think.
EDIT: @codinghorror Am I correct in assuming that there is no user-level setting?
I have been running into this too. Don’t know if it is a recent development but just started noticing it. I use discourse to reply to email often. When I do, I hit reply in the email and then copy and paste the entire email text into my discourse message. It recognizes one level of quoting correctly but encodes the second and third level. So I have to first paste into a plain text editor and do global search and replace, then edit, to get it to look as expected in discourse.
use ctrl+shift+v, it is your friend ![]()
If I want to lose all the other formatting too, then yes.
I will try this out next time and see how it turns out.
Thanks.
What about when you’re responding from your phone? At least iPhone doesn’t have the option to paste in plaintext.
Does iPhone retain formatting when copying? I’m not sure it even does?
It does. I just tried it.
Perhaps it would make sense to add a button on the reply menu for doing a plain text paste? Though space there is already a little tight on my iPhone 8…
@seanblue @tobiaseigen thanks for the report. I will definitely try to improve this. But it’s not in my current priority list.
I agree, a plain text menu option would be great when I’m working from my phone.
게시글 전체를 읽으려 했으나, 처음 몇 줄을 읽은 후에는 대충 훑어보기만 했습니다.
또한 온라인 변환기를 시도해 보았는데,
\+ exist
A \= b
처럼 사용할 경우 \가 \\로 변환되지 않아, 결과적으로 code\text가
+ exist
A = b
로 표시됩니다.
저희 사이트(SWI-Prolog)는 Prolog 프로그래밍 언어인 SWI-Prolog를 위한 공간이며, 많은 게시글에 Prolog 소스 코드가 포함되어 있습니다. Prolog는 and, or, not라는 세 가지 기본 논리 연산자를 기반으로 한 논리 프로그래밍 언어이며, not은 일반적인 연산자와 함께 사용될 때 주로 \ 문자로 표현됩니다. 예를 들어 \=/2와 \+/1 등이 있습니다. Markdown은 \을 이스케이프 문자로 사용하기 때문에, 인라인으로 붙여넣은 연산자가 코드 블록 내에 있지 않을 경우 \=나 \+로 표시되지 않고, Markdown 변환 과정에서 \이 이스케이프 문자로 인식되어 사라져 =나 +로만 보이는 경우가 많습니다.
이 문제를 수정할 수 있을까요? ![]()
코드 블록에 붙여넣어야 하므로, 세 개의 백틱(```)을 입력하고 enter를 누른 다음에 붙여넣어야 합니다?
감사합니다.
대부분의 사용자는 ```prolog와 ```으로 코드 블록을 감싸며, 그렇지 않은 사용자를 위해 제 게시물에서 이를 언급했습니다.
문제는 인라인 텍스트인 경우입니다. 우리는 많은 사용자가 게시물을 교정하지 않거나, 교정하더라도 누락된 \를 놓치기 쉽다는 것을 알고 있습니다. ![]()
SWI-Prolog의 게시물에 대한 사용자 안내
인라인 텍스트에서 \ 문자를 사용하는 경우, 예를 들어 \= 또는 \+를 사용하면 = 또는 +로 변환되며, 이는 아마도 원하지 않는 결과일 것입니다. Discourse는 붙여넣은 텍스트를 HTML로 변환하는 지능적인 시도를 하지만, 동시에 Markdown을 사용하며, Markdown에서는 \를 이스케이프 문자로 사용합니다.
잘못된 사용 예시, =와 +.
인라인 코드의 경우 텍스트를 `로 감싸야 합니다. 예를 들어 `\=` 또는 `\+`로 작성하면 \= 또는 \+로 표시됩니다.
또는
\를 두 번 사용해도 됩니다. 예를 들어 \\= 또는 \\+를 붙여넣으면 \= 또는 \+로 표시됩니다.
그러나 여러 줄의 코드가 있는 경우, 코드 섹션을 ```prolog와 ```으로 감싸면 Prolog 소스 코드 변환기에 의해 변환되어 \는 그대로 유지됩니다.
A \= b.
\+ true.
여기에 복사하여 붙여넣을 때조차 정확성을 확보하기 위해 텍스트 대신 원래 HTML로 돌아가서 복사해야 했습니다.
이 이슈를 완료로 닫겠습니다! @vinothkannans 님, 이걸 만들어 주셔서 정말 잘하셨어요.
향후 개선 사항은 새로운 버그/기능 주제에서 다루시면 됩니다.