Markdown Syntax & Style
Basic Syntax
I just love bold text. Italicized text is the cat’s meow. Both can look cool too.
At the command prompt, type nano
.
And then press CTRL+ALT+Delete to end the session.
Sometimes, when I want to talk about #lua, for example, I’ll use a hashtag when I’m writing. That lets me keep things, sorta #linked. I’m also supporting at-ing folk, like this: @sarah, but that’s just a fancy hashtag.
Some links
- This is a link to another internal page, which might interest you.
- This one is an anchor on this page, which you’ve probably seen.
- External links:
- This is a link to something neat;
- A different link;
- And one more just for good measure.
I’m also expecting raw urls, like: https😕/accidental.cc to be automatically linked.
Do email addresses work? jon@accidental.cc
Some bullet lists
Later, I can add some bullet lists with paragraphs in them.
-
I kind of want to see what it’s going to look like to have potentially full paragraphs of text per bullet.
-
This tends to be the way that I write, since the extra structure keeps me from getting lost in my own head.
-
This would be another paragraph under the first, curious what that’s going to look like from a rendering perspective.
- This is a third level.
-
-
And another top level.
Are tasks lists useful?
- Take out the trash
- Finish this website
- Make coffee
Some inline styles
The world is flat. We now know that the world is round.
I’ve got code
here, which is important.
I like emacs
, with evil
for vim
-like modal editing.
Do we do anything with #hashtags? I think it would be useful to extract and style/link them from #homepost entries.
That said, we shouldn’t be finding things in#themiddle#ofwords nor with@signs
GIF is a bitmap image format.
H2O is a good molecule.
Inline math:
Fake inline math: Xn + Yn = Zn
Emojis! Thumbs up: 👍, thumbs down: 👎
Press CTRL+ALT+Delete to end the session.
Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
Blocks n’ such
Blockquotes
Tiam, ad mint andaepu dandae nostion secatur sequo quae.
Note that you can use Markdown syntax within a blockquote.
Attribution via cite
and footnotes:
Being a good software engineer is 3% talent, 97% not being distracted by the internet. - Unknown, appropriated1
Code
@@ -4,6 +4,5 @@
- let foo = bar.baz([1, 2, 3]);
- foo = foo + 1;
+ const foo = bar.baz([1, 2, 3]) + 1;
console.log(`foo: ${foo}`);
(ql:quickload :usocket)
(defvar *host* "0.0.0.0")
(defvar *port* 7000)
(let ((server-socket (usocket:socket-listen *host* *port*)))
(let ((client-socket (usocket:socket-accept server-socket)))
;; do something with the client connection
(usocket:socket-close client-socket))
(usocket:socket-close server-socket))
set @my_var = 'foo';
set @my_other_var = 'bar';
insert into people
values ('John', 'Doe');
Query OK, 1 row affected (0.02 sec)
select *
from people
order by last_name;
+------------+-----------+
| first_name | last_name |
+------------+-----------+
| John | Doe |
+------------+-----------+
Diagrams and Images and Stuff
Tables
Syntax | Description |
---|---|
Header | Title |
Paragraph | Text |
Italics | Bold | Code |
---|---|---|
italics | bold | code |
Diagrams
Photos
Headings
We’ve seem h1
-h4
above, this is the set from 3 down:
H4
H5
H6
Footnotes
-
From a great old SO thread on “your favorite quotes about programming.” ↩