jesse_the_k: Professorial human suit but with head of Golden Retriever, labeled "Woof" (doctor dog to you)
[personal profile] jesse_the_k

Markdown is a minimal way to format your text. The goal is to use "natural" formats, similar to email. Software that understands Markdown translates it to HTML. Markdown is much easier--and more forgiving--than HTML. This post has the markdown you'll use the most. The rest of the features are explored later.

The full spec is hosted by its creator, Jon Gruber https://daringfireball.net/projects/markdown/syntax

Using Markdown Here at Dreamwidth

Markdown is welcome everywhere except in subject lines. You can use it for posts, comments, email posts.

Markdown is a silent feature inside Dreamwidth's HTML editor. You turn it on by making the first line of the post:

!markdown

Now Dreamwidth interprets any Markdown you type. By definition, Markdown includes HTML, so you can also use HTML to format your post—for Dreamwidth cuts, image embeds, and any other HTML task.


Bold, strong, italic, emphasis

Begin and end text with either _ underscore or * asterisk

Use ONE for emphasis aka italic

Use TWO for strong aka bold

Markdown:

The *rain* in _Spain_ falls *mainly* on _the Plain_. I **‌think** she's __got it__, she's **‌finally** got __IT__!

Displays as:

The rain in Spain falls mainly on the Plain. I ‌think she's got it, she's ‌finally got IT!


DW usernames

Prefix the account with an "@" sign

@jesse_the_k ⇒ [personal profile] jesse_the_k

@access_fandom ⇒ [community profile] access_fandom

@dw_news ⇒ [site community profile] dw_news

Usernames elsewhere

For other sites, use the format @username.site

Some examples:

@jesse_the_k.ao3 ⇒ [archiveofourown.org profile] jesse_the_k

@jesse-the-k.tumblr ⇒ [tumblr.com profile] jesse-the-k

@jesse_the_k.twitter ⇒ [twitter.com profile] jesse_the_k

see DW FAQ 87 for all the supported sites

ETA: I originally had this wrong--thanks to [personal profile] bluewinged_songbird and [personal profile] syntheid for setting me straight!


Lists

Markdown:

Bullet lists begin and end with a blank line

- then any number of lines that
- begin with a hyphen 
    - and a space 
- like this one

must have a blank line to turn off the list

Displays as:

Bullet lists begin and end with a blank line

  • then any number of lines
  • that begin with a hyphen
  • and a space
  • like this one

must have a blank line to turn off the list


Numbered lists (called ordered lists <ol> in HTML) use digits instead of hyphens. The presence of a digit and a period is what does it:

Markdown:

must have a blank line

4. then any number of lines
1. that begin with a digit and  
290. then a period, like this one
2. and this one
2. and so on

must have a blank line to turn off numbering

displays as:

must have a blank line

  1. then any number of lines
  2. that begin with a digit and
  3. then a period, like this one
  4. and this one
  5. and so on

must have a blank line to turn off numbering

The value of the number doesn't matter, and the list always starts at 1!

Horizontal rule

Three or more asterisks, with blank line before & after. Markdown:

***

Displays as:


[ETA: this also works with hyphens, but hyphens will end your post early when you're replying or posting by email]

LINKS

Inline

Write your link text (aka anchor) in square brackets immediately followed by the URL in parentheses.

Markdown:

The source repository is located at [Dreamwidth's GitHub Repositories](https://github.com/dreamwidth/).

Displays as:

The source repository is located at Dreamwidth's GitHub Repositories.

Go bare

Enclose URLs and email addresses within angle brackets and they're clickable

<https://example.com>https://example.com/

<address@example.com>address@example.com


CODE SAMPLES

Surround code with ` backtick

Markdown: Remember to turn on this feature by beginning your post or email with `!markdown` followed by a blank line.

Displays as: Remember to turn on this feature by beginning your post or email with !markdown followed by a blank line.

Page 1 of 5 << [1] [2] [3] [4] [5] >>
⇾1

(no subject)

Date: 2019-01-09 01:13 am (UTC)
redbird: closeup of me drinking tea, in a friend's kitchen (Default)
From: [personal profile] redbird
Thank you!!
⇾1

(no subject)

Date: 2019-01-09 01:31 am (UTC)
capri0mni: A black Skull & Crossbones with the Online Disability Pride Flag as a background (Default)
From: [personal profile] capri0mni
Thank you! I will be signal boosting.

I think this will help make the Tumblr refugees more at ease.

(I was not planning on a rhyme...)
⇾1

(no subject)

Date: 2019-01-09 01:32 am (UTC)
squidgiepdx: (Default)
From: [personal profile] squidgiepdx
Bookmarking - THANK YOU! :)
⇾1

(no subject)

Date: 2019-01-09 02:49 am (UTC)
delight: (Default)
From: [personal profile] delight
I use markdown because it makes mobile way easier and because my word processor of choice uses it. I can't wait for it to be a thing in comments because I use mobile commenting way more than posting.
⇾1

(no subject)

Date: 2019-01-09 02:50 am (UTC)
kore: (Dreamwidth - green)
From: [personal profile] kore
Wow, v helpful! Thanks!
⇾1

(no subject)

Date: 2019-01-09 03:46 am (UTC)
mdlbear: (hacker glider)
From: [personal profile] mdlbear
Nice! A couple of questions:

1. Does it support ```...``` fencing for multi-line code snippets? (Github Flavored Markdown and maybe others)?

2. Can Markdown conversion get done on posts submitted via XML-RPC? (This isn't all that important to me, since I pipe Markdown drafts through pandoc in my client, but it could make a difference to folks with other clients.)
⇾1

(no subject)

Date: 2019-01-09 04:18 am (UTC)
From: [personal profile] cbrachyrhynchos
No, DW doesn't support code fences, and probably not most of the github/pandoc extensions.
⇾1

(no subject)

Date: 2019-01-09 06:53 am (UTC)
emceeaich: A close-up of a pair of cats-eye glasses (Default)
From: [personal profile] emceeaich
I need to dig through the repo to see which markdown engine is used here. At Mozilla we just enabled Markdown comments in Bugzilla, and that engine implements the GitHub flavor. Maybe someone could try dropping it in?
⇾1

(no subject)

Date: 2019-01-09 07:06 am (UTC)
luzula: a Luzula pilosa, or hairy wood-rush (Default)
From: [personal profile] luzula
Huh, I had no idea, thank you! I mean, I'd have to retrain myself from html, but this does look like it would save some typing.
⇾1

(no subject)

Date: 2019-01-09 07:57 am (UTC)
bluewinged_songbird: Chappell Roan pulled off-screen by a redhead magician (Steve Rogers)
From: [personal profile] bluewinged_songbird
Oh this is nice! Very concise and straightforward.

One thing, you can actually use markdown for usernames on other sites too. Per [personal profile] syntheid's post, it would look like @something.twitter
⇾1

(no subject)

Date: 2019-01-09 12:16 pm (UTC)
From: [personal profile] raino
Thanks! This is super useful!
⇾1

(no subject)

Date: 2019-01-09 02:43 pm (UTC)
mdlbear: blue fractal bear with text "since 2002" (Default)
From: [personal profile] mdlbear
To answer my own question #2: yes, it does. Starting a post with !markdown and submitting it with a client such as charm does, in fact, format it with Markdown.
⇾1

(no subject)

Date: 2019-01-09 03:55 pm (UTC)
replyhazy: (Default)
From: [personal profile] replyhazy
How nice!

Though if I post by email, I know I have to be careful of the horizontal rule. My email posts used to get cut off at the HR.
⇾1

Re: But I love it when you

Date: 2019-01-09 11:32 pm (UTC)
capri0mni: A black Skull & Crossbones with the Online Disability Pride Flag as a background (Default)
From: [personal profile] capri0mni
Heh!
Page 1 of 5 << [1] [2] [3] [4] [5] >>

Popular Tags

Subscription Filters

June 2025

S M T W T F S
12345 67
891011121314
1516 1718192021
22232425262728
2930     

Style Credit

Powered by Dreamwidth Studios
Page generated Wednesday, June 18th, 2025 12:30 pm