What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

I've noticed that I can escape curly braces. That is, if I type \{, I get {. Why are curly braces special characters; what Markdown syntax uses them? I couldn't find anything about it in the editing-help page.

share|improve this question
5  
Because they are half of a free-hand circle. –  GManNickG Nov 9 '09 at 7:20
1  
obligatory +1 for mentioning free hand circles –  Amarghosh Nov 9 '09 at 7:21
3  
All good standards have things that are reserved for future use –  beggs Nov 9 '09 at 7:38
add comment

3 Answers 3

up vote 5 down vote accepted

In at lease one extension to Markdown, something called PHP Markdown Extra, braces are used to add an id to a header:

So in that variant of Markdown, this code:

## Header 2 ##      {#header2}

Will produce markup like:

<h2 id="header2">Header 2</h2>

I don't see any reference to extensibility on the Markdown Documentation Page, but perhaps the curly braces and other characters are reserved for future use.

share|improve this answer
1  
I guess "reserved for future use" is the best answer I'm going to get. Though the existing symbols are plenty for extensibility; if they need a new bracket, they could use !( for example. –  Anton Geraschenko Nov 10 '09 at 19:25
add comment

It's just part of Markdown - Markdown provides backslash escapes for the following characters:

\   backslash
`   backtick
*   asterisk
_   underscore
{}  curly braces
[]  square brackets
()  parentheses
#   hash mark
+   plus sign
-   minus sign (hyphen)
.   dot
!   exclamation mark

There's no mention of what special meaning { has anywhere on the syntax page for Markdown though.

share|improve this answer
add comment

The brace ({}) isn't special. But it don't do anything.

Not in this range: {0-9}.
Nor with this range: {aardvark-zebra}

The backslash (\) just looks like it's helping out escape punctuation marks just in case things are done with them.

Special ed maybe.

share|improve this answer
add comment

You must log in to answer this question.

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