summaryrefslogtreecommitdiffstats
path: root/org-examples-on-github.post
blob: 68c77c0771802a0454696ba4a15a579cd8110324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;;;;
title: Org examples on github
tags: github, org-mode, emacs
date: 2013-01-20 14:09
format: md
;;;;;

[github](http://github.com) has an org-mode parser for their README
files, but I always thought it didn't handle `#+BEGIN_SRC` and
`#+BEGIN_EXAMPLE` style blocks. And I'm not wrong, but it does handle
`:` blocks.

So this won't work:

```
#+BEGIN_EXAMPLE
  This is an example
#+END_EXAMPLE
```

But this will:

```
: This is an example
```

That was a nice surprise for me, because I prefer org-mode for almost
all of my documents.

<!-- Local Variables: -->
<!-- mode: markdown -->
<!-- End: -->