snippetjavascriptTip
This is a test snippet, in JavaScript
Viewed 0 times
testthissnippetjavascript
Problem
This is a test snippet. It is intended to provide a centralized place to _test_ all sorts of markdown content that one could produce in a post. It is not intended to be published. Always make sure the
Supported heading levels are between
In order to better test headings, we need to make sure that we have a lot of text here. The spacing between headings and paragraphs is imperative to get right.
dateModified is in the far, far future.Supported heading levels are between
2 and 4 (inclusive). Level 1 is reserved for the post title.In order to better test headings, we need to make sure that we have a lot of text here. The spacing between headings and paragraphs is imperative to get right.
- Lists might end up appearing right after a heading.
- We want to make sure they look correct, too.
Solution
<h4>Didn't see this one coming, huh?</h4>In order to better test headings, we need to make sure that we have a lot of text here. The spacing between headings and paragraphs is imperative to get right.
- Lists might end up appearing right after a heading.
- We want to make sure they look correct, too.
This was a good opportunity to test what a code block would look like right after a heading. Hope it looks good!
Links come in all shapes and sizes. They are often in the form of an automatically generated reference, such as
Array.from().Other times, they might be plain text linking to an internal resource, such as this link.
Code Snippets
<h4>Didn't see this one coming, huh?</h4>// First we need to make sure lines that are 80 characters long fit snugly here.
const aFunction = (a, b = 2) => {
if (a === b) return b;
const c = a * b;
const d = a > b ? `${a} is larger` : `${a} is smaller`;
const e = 'something';
return [e, { c, d }];
};<div class="something">
<p>Some text</p>
</div>Context
From 30-seconds-of-code: test-snippet
Revisions (0)
No revisions yet.