617

Notes:

  • Answers will occasionally be moved to the Sandbox archive when there are too many of them. When using them to report bugs, keep an eye on the post.
  • This site, Meta Stack Exchange, is usually used as a "test bed" for pending changes happening to the way text is rendered on all network sites. Changes to text rendering that are going to be rolled out to the network are usually deployed here first to test them out and fix any potential glitches. Currently, there are no such changes pending, but if there were, keep in mind that text posted here may render differently from the other sites until the changes roll out to them as well.

As per Jeff's suggestion in this comment:

You can use this question as a formatting sandbox. You can:

  • edit this question itself (Community Wiki questions such as this one require only 100 reputation to edit instead of 2,000)
  • post answers to this question (This question might be protected, requiring earning 10 reputation on this site to answer)
  • post comments to this question or its answers
  • test suspected bugs with the editor or the rendering
  • post ponies (only when mods are asleep)

Beware that since the changes to syntax highlighting in December 2010, and the inline hints added in March 2011, no syntax highlighting is applied unless the question's tags or an inline hint enable it. So, to test highlighting here in the sandbox:

  1. As of January 8, 2019, you can use GitHub-flavor fenced code blocks in your posts, specifying the language after the opening fence:

    ```html
    While not hinted otherwise: <html></html> source <b>goes</b> "here".
    ```
    
    ```js
    var a = 3;
    while (not (a > 0)) {
        alert("JavaScript code <b>goes</b> here.");
    }
    ```
    
  2. Or:

    • Create code blocks in any way (using the fence notation above, the four-space indent form, or using HTML <pre><code> tags).

    • Save your post!

    • Use your browser's developer tools to edit the resulting HTML. To open developer tools, press F12, or ⌥⌘ I on Mac.

    • Find the <pre> element and add the attribute class="prettyprint", or change it into one of the valid syntax hints linked above, like class="lang-vb prettyprint".

    • Run the following in the location bar: javascript:prettyPrint(); or prettyPrint() in the console.

Answers that are considered annoying or obnoxious, or that cause breakage for users, will be deleted. This is codified as a policy as of March 29, 2018.

95
  • Bold code block.Italic code block. Mar 4 '19 at 12:36
  • Is new line working correct? Adding two spaces at the end of this line And now the new line... And another another... No new lines :(
    – smajli
    Mar 5 '19 at 11:14
  • New line </br> continue in new line...
    – smajli
    Mar 5 '19 at 11:16
  • Test: meta.stackexchange.com/questions/324682/…
    – Alex
    Mar 17 '19 at 2:35
  • Do HTML &quot; entities &quot; work&nbsp;? Guess not. Apr 1 '19 at 22:18
  • 11
    A comment with some weird markdown, to test and help this user. Look tags work too, and so does tour. Apr 6 '19 at 1:59
  • 12
    Note: Do not remove @BhargavRao's comment, or you will break this answer
    – wizzwizz4
    Apr 6 '19 at 17:16
  • 7
    ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮ Such an odd comment...‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮‬ Jun 18 '20 at 1:16
  • 2
    ‮sdrawkcab si tnemmoc sihT Jul 4 '20 at 1:03
  • 1
    SOBotics Tool to get the source text of this comment. Single backslash and single backtick: \, `. Type: ``\``, `\``. Jul 12 '20 at 23:23
  • 7
    Note: Do not remove @wizzwizz4's comment, or you will not know that you don't have to delete Bhargav Rao's comment. Jul 18 '20 at 11:49
  • 1
    ‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬ ‬‬‭backward comment‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‮‭‬‭‭‬ ‭‮‬‬
    – ppwater
    Nov 30 '20 at 1:32
  • 2
    @ppwater pasting the contents of your comment after selecting the spaces after it too into TextEdit and hitting backspace crashes on macOS Catalina. ¯\_(ツ)_/¯ It appears it split my cursor in two???? Jan 31 '21 at 21:14
  • 2
    Oh, and [something](//) behaves just like [something](https://), too. May 5 '21 at 11:56
  • 1
    @samwyse [Link](/q/3122) is shorter. Dec 19 '21 at 20:31

197 Answers 197

1 2
3
4 5
7
1

or so
 you claim

0
1

Do they look the same?

 Aa - sum(q * r) 

Aa - sum(q * r)

Aa - sum(q * r)
Aa - sum(q * r)
Aa - sum(q * r)
Aa - sum(q * r)

Aa - sum(q * r)

Should they look the same?

0
1

Testing some formatting

Below are some formatting tests within an answer...


Sample blockquote info

code block 

Blue Prism

sample code snippet

// init webrequest
HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
webRequest.Method = "POST";
webRequest.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
webRequest.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
webRequest.ContentType = "application/x-www-form-urlencoded";
webRequest.ContentLength = bytes.Length;
0
1

Testing image links for images that really don't need an 'open in new tab' link on hover.

[![enter image description here][1]][1]

enter image description here

vs
![enter image description here][1]

enter image description here

& for MM…

![TITLE: REPORT TITLE][2]
[2]: https://i.stack.imgur.com/HbbYw.png

review image

1

just testing a url with square brackets and spaces

[http://&lsqb;IP Address here&rsqb;/service/health](http://&lsqb;IP%20Address%20here&rsqb;/service/health)

http://[IP Address here]/service/health

[http://&lsqb;IP Address here&rsqb;/service/health][1]
[1]: http://&lsqb;IP%20Address%20here&rsqb;/service/health

http://[IP Address here]/service/health

1
1

This is a test to see if I can trigger a potential bug with multi-paged questions and new answers.

Nothing to see here, move along (~^w^)~

1

test post please ignore 30 characters

test edit

3
  • 1
    test comment asdfasdf Oct 30 '19 at 11:59
  • 1
    Test reply asdfasdf
    – Anonymous
    Apr 15 '21 at 16:04
  • 1
    @Ano Test ping reply asdfasdf Apr 15 '21 at 21:59
1

I am experimenting with runnable snippets.

.inner {
  margin-bottom: 1rem;
}

.inner::before {
  content: "I'm before inner!";
  display: block;
}
<div class="outer">
  <div class="inner">Inner 1</div>
  
  <div class="inner">Inner 2</div>
</div>

1

Testing. Ok.

Does LaTeX formatting work? Let me test.

\binom{20}{2} \cdot (\frac{1}{10})^2 \cdot (\frac{9}{10})^{18} \approx 28.518%

Cool! It does! Ok

1
  • That's some hawt stuff! Jun 3 '20 at 1:00
1

The diff is informative; it will not apply directly because this site mangles tabs and whitespaces

BET

--- drivers/usb/class/cdc-acm.c~
+++ drivers/usb/class/cdc-acm.c
@@ -1063,7 +1063,7 @@
 }

 static const struct tty_port_operations acm_port_ops = {
-   .dtr_rts = acm_port_dtr_rts,
+   /* .dtr_rts = acm_port_dtr_rts, */
    .shutdown = acm_port_shutdown,
    .activate = acm_port_activate,
    .destruct = acm_port_destruct,

ETA: nvm I'm rekt

feel free for anyone to commandeer this answer if your rep is too low for the sandbox

0
1

Testing possible issues with the revision history for good measure (Thank you for enabling YouTube embedding!):

iframe:

Script:

alert("Script injection protection broken")

Video raw:

https://www.youtube.com/watch?v=Hwz7YN1AQmQ

Video iframe:

2
1

Yay! We just get to messAround

22 = 4 (unless we're talkin' common core)

1

A new list?

  1. This.
  2. That.
1
<!doctype html>
<html>
<head>
<title>HTML Test</title>
<script type="text/javascript">
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
  for (var i = 42; --i >= 0;) {
    alert('Hello ' + String(world));
  }
}
</script>
<style type="text/css">
p { color: pink }
b { color: blue }
u { color: "umber" }
</style>
</head>
<body>
<h1>Hello world!</h1>
</body>
</html>
1

asdhskdhflsdhfjak

3
  • Um... I don't understand what's going on in this answer Jun 9 '20 at 13:36
  • 2
    @mindstormsboi Formatting sandbox answers are typically nonsensical. I wouldn't worry about them too much, unless they're Rude/Abusive.
    – Spevacus
    Jun 9 '20 at 13:58
  • yeah, just testing things
    – FireCubez
    Jun 9 '20 at 14:50
1

Testing whether a formatting bug was removed by CommonMark (Success?)

Before CommonMark:

enter image description here

Notably there is no white space or gap between "commodo consequat" and "Duis aute".

After CommonMark (if spaces and > are added):

  • Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    • Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. [Yuck! This is the problem!]

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Testing whether a formatting bug was removed by CommonMark (Success?)

Before CommonMark:

> ```
# test

Displayed as:

enter image description here

After CommonMark is displays correctly(?) as:

test


Testing whether a formatting bug was removed by CommonMark (Success?)

Before CommonMark:

enter image description here

After CommonMark:

[link1](https://example.com/q="one") properly becomes link1, which points to the URL https://example.com/q="one".

[link_uno](https://example.com/q="uno"&true=true "Link numero uno") properly becomes link_uno with a title of Link numero uno.

I don't understand the "last" problem

  • [Link with hint](https://example.com/page "URL: https://example.com/")
  • <a href="https://example.com/page" title="URL: https://example.com/">Link with hint 2</a>

Properly(?) renders as:


Testing whether a formatting bug was removed by CommonMark (Success?)

Before CommonMark:

1. Testing a strange bug:
    - ```
      testing something
      ```

Displayed as:

enter image description here

After CommonMark:

  1. Testing a strange bug:
    • testing something
      

Testing whether a formatting bug was removed by CommonMark (???)

Before CommonMark:

[wolfram alpha](https://www.wolframalpha.com/input/?i=sum+from+k%3D3+to+v+of+(v%5E2+%2F+2)+%2F+((v-k)%5E2+*+k)

Displayed correctly in the editor and incorrectly in the actual post

After CommonMark:

The url [wolfram alpha](https://www.wolframalpha.com/input/?i=sum+from+k%3D3+to+v+of+(v%5E2+%2F+2)+%2F+((v-k)%5E2+*+k) displays incorrectly in both the editor and the actual post.

Adding a parenthesis at the end of the link though, makes it appear correctly in both the editor and the post: wolfram alpha


1

Can I undelete an answer myself if it was deleted via Recommend deletion votes from review?


This is testing for undeletion when a post is deleted with

Review ends with 4/6 recommend deletion votes and none of them was cast by a trusted user.

Anyone, feel free to flag this as NAA or VLQ.

Non-trusted users only (below 20k rep), feel free to recommend to delete this post~

Moderator, consider replying if you get any mod flag?

6
  • I flagged as NAA
    – Dharman
    Jun 19 '20 at 10:33
  • Undeleted myself, waiting for mod's response if they get any flag or not. Jun 19 '20 at 12:21
  • @MetaAndrewT. Even have a link for you: meta.stackexchange.com/a/228479/369802 You get a disputed low quality review auto flag. I have three now ;)
    – Tinkeringbell Mod
    Jun 19 '20 at 12:30
  • Other links that may interest you: meta.stackexchange.com/q/311536/369802. Basically, only mod-deleted answers are 'permanently' deleted. If an answer or question is mod-deleted, the community can't vote to undelete it, and neither can the OP of a post :)
    – Tinkeringbell Mod
    Jun 19 '20 at 12:32
  • @Tinkeringbell thanks! Really appreciated for contributing to science :) Jun 19 '20 at 12:35
  • Well, then you're really going to enjoy my final trick! presses delete :P
    – Tinkeringbell Mod
    Jun 19 '20 at 12:36
1

Can I undelete an answer myself if it was deleted via Recommend deletion votes from review?


This is testing for undeletion when a post is deleted with

Review ends with a mix of 1 or 2 delete votes and recommend deletion votes.

Anyone, feel free to flag this as NAA or VLQ.

Anyone is also free to recommend to delete this post~

(Trusted users (20k rep): consider commenting after recommending to delete this post, so that other trusted users can skip it..?)

Moderator, consider replying if you get any mod flag?

6
1

Escaped characters in comments.

2
  • _/\_ renders like this: _/_
    – ChrisW
    Jun 21 '20 at 7:52
  • _/\\_ renders like this: _/\_
    – ChrisW
    Jun 21 '20 at 7:53
1

emphasized text
emphasized text
_this_is_a_Filename.doc
this_is_a_second_filename.doc

Rough markdown of this post:

*emphasized text* <br>
_emphasized text_ <br>
_this_is_a_Filename.doc <br>
_this_is_a_second_filename_.doc <br>
1

This is my code:

collections: subcategory
{
    _id:"ZbwCsJEMi2DesyJA7",
    category_name: "ICT",
    subcategory_name: "Laptop"
}

subcategory.js

Template.Subcategory.events({
     "keyup .searchbox": function(event){
           var query = event.target.value;
           Session.set('query', query);
     }
});

Template.Subcategory.helpers({
     subcategory: function(){
         var filter = {sort: {}};
         var query = Session.get('query');
         filter.sort[Session.get('sortby')] = 1;
         return Subcategory.find({ subcategory_name: new RegExp(query, 'i')} , filter ); 
    }
});

7
  • Comments are used to ask for clarification or to point out problems in the post. Outdated comments may get deleted. Learn more about comments…. Jul 15 '20 at 23:19
  • Comments use mini-Markdown formatting: [link](http://example.com) _italic_ **bold** `code` . The post author will always be notified of your comment. To also notify a previous commenter, mention their user name: @peter or @PeterSmith will both work. Learn more about formatting… Jul 15 '20 at 23:20
  • enter at least 15 characters Jul 15 '20 at 23:25
  • testing how to undo votes on comments Jul 15 '20 at 23:25
  • Apparently if you mess with the Javascript you can undo votes on comments within 60 seconds of voting even after refreshing the page. Jul 15 '20 at 23:28
  • But it doesn't seem to be possible to undo votes on comments if you voted more than 60 seconds ago, not even by messing with the Javascript. Jul 15 '20 at 23:31
  • Here is the code to undo votes on comments if you voted less than 60 seconds ago: let machin = document.createElement("form"); machin.method = "post"; machin.action = "/posts/comments/<comment id>/vote/0"; let fkey = document.createElement("input"); fkey.name = "fkey"; fkey.value = "fa360d325887bceb4de2c5522d095a7f65960ee9954efab80223ad4e67b23610"; machin.appendChild(fkey); document.body.appendChild(machin); machin.submit();. Paste it into the developer console on the same site as the comment is on, and replace <comment id> with the ID of the comment you want to undo your vote on. Jul 15 '20 at 23:33
1

Dots of shame.

1

Testing testing runnable script

document.getElementById("p1").innerHTML = "js"
p {
  color: green;
}
<a href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ" target = "_blank">Click the link!</a>
<p> :) </p>
<p id = "p1"></p>

5
1

Minimal example for HTML comments breaks formatting from that point, but bloated in order to avoid being converted to a comment when I want it to remain as an answer.

blah

blah

blah

**blah**
1
1

Formatting quotes. The markdown is this:

> This text is being used as a test.
> The second line is treated as part of the first line.

> The third line is kept separate from the second line, but appears like a new section of quoteblock.
>
> The fourth line is kept separate from the fourth line, but continues the same quoteblock, but is spaced "far"  from the third line.    [there are four trailing spaces here]
> The fifth line is kept separate from the fourth line, but continues the same quoteblock, but is spaced "close" to the fourth line.

The actual appearance is this:

Formatting quotes.

This text is being used as a test. The second line is treated as part of the first line.

The third line is kept separate from the second line, but appears like a new section of quoteblock.

The fourth line is kept separate from the fourth line, but continues the same quoteblock, but is spaced "far" from the third line.
The fifth line is kept separate from the fourth line, but continues the same quoteblock, but is spaced "close" to the fourth line.

1
  • 1
    Yeah, the four trailing spaces creating a break like a <br /> tag confused me for the longest time. The lack of a > in the space creating a break in the blockquote is part of the recent switch to CommonMark.
    – BSMP
    Sep 5 '20 at 4:44
1

This is a test to see if the new highlighter handles certain dark corners of shell syntax better than the old one. Code snippet from this old post. YES is a comment, NO isn't.

echo 1 # YES
echo 2 $# NO foo# NO
echo 3;#YES
# YES
cat << E
# NO
E
echo 4 " # NO \" # NO" \" # YES
echo "5
# NO
$(echo 6 # YES
)
`echo 7 \" # NO \"`
"
eval 'echo 8 # NO, then YES'
1

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

<div>
$$\frac{a}{1-a^2}$$
</div>

The following can only be done by ♦ moderators (and employees who have a diamond):

https://en.wikipedia.org/wiki/N%C4%ABlaka%E1%B9%87%E1%B9%ADha_Dh%C4%81ra%E1%B9%87%C4%AB

14: Post Locked - A post was locked by a moderator.
15: Post Unlocked - A post was unlocked by a moderator.
18: Question Merged - A question has had another, deleted question merged into itself.

The following can only be done by ♦ moderators (and employees who have a diamond) on questions:

16: Community Owned - A post has become community owned.
17: Post Migrated - A post was migrated. (Meta Stack Exchange only)

The following cannot be done by ♦ moderators:

  • 17: Post Migrated - A post was migrated. (if older than 60 days)
  • 21: Post Disassociated - An admin removes the OwnerUserId from a post.
  • 22: Question Unmerged - A previously merged question has had its answers and votes restored.

enter image description here

or use an img tag

<img src="https://i.stack.imgur.com/o3JGL.png" />

1

"Example" domain names that trigger editor warnings:

Hmmm, none of these trigger warnings?!

....not on the meta site, but they do on the main site. BUT not all main sites!

1

posting sample answer from api [tour]

2
1 2
3
4 5
7

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .