Skip to content

Commit

Permalink
Make Org table exports work; Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Jul 12, 2017
1 parent 8379705 commit b6176f6
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 55 deletions.
58 changes: 58 additions & 0 deletions example-site/content-org/all-posts.org
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,64 @@ Here is the first post on Emacs.
:EXPORT_FILE_NAME: emacs-post-2
:END:
Here is the second post on Emacs.
* Tables :table:
** Simple Table
:PROPERTIES:
:EXPORT_FILE_NAME: simple-table
:END:
| h1 | h2 |
| a | b |
| c | d |
** Table with narrowest cols
:PROPERTIES:
:EXPORT_FILE_NAME: table-with-narrowest-columns
:END:
| 1 | 2 | 3 |
| a | b | e |
| c | d | f |
** Table with top border
:PROPERTIES:
:EXPORT_FILE_NAME: table-top-border
:END:
|---+---+---+---|
| 1 | 2 | 3 | 4 |
| a | b | e | g |
| c | d | f | h |
** Table with bottom border
:PROPERTIES:
:EXPORT_FILE_NAME: table-bottom-border
:END:
| 1 | 2 | 3 | 4 |
| a | b | e | g |
| c | d | f | h |
|---+---+---+---|
** Table with top and bottom border
:PROPERTIES:
:EXPORT_FILE_NAME: table-top-and-bottom-border
:END:
|---+---+---+---|
| 1 | 2 | 3 | 4 |
| a | b | e | g |
| c | d | f | h |
|---+---+---+---|
** Table with rule after first row
:PROPERTIES:
:EXPORT_FILE_NAME: table-only-rule-after-first-row
:END:
| 1 | 2 | 3 | 4 |
|---+---+---+---|
| a | b | e | g |
| c | d | f | h |
** Table with borders and rule after first
:PROPERTIES:
:EXPORT_FILE_NAME: table-with-borders-and-rule-after-first
:END:
|---+---+---+---|
| 1 | 2 | 3 | 4 |
|---+---+---+---|
| a | b | e | g |
| c | d | f | h |
|---+---+---+---|
* TODO Pre-Draft State
:PROPERTIES:
:EXPORT_FILE_NAME: draft-state-todo
Expand Down
11 changes: 11 additions & 0 deletions example-site/content/posts/simple-table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "Simple Table"
date = 2017-07-12T19:25:56-04:00
tags = ["table"]
draft = false
+++

h1 | h2
---|----
a | b
c | d
11 changes: 11 additions & 0 deletions example-site/content/posts/table-bottom-border.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "Table with bottom border"
date = 2017-07-12T19:26:06-04:00
tags = ["table"]
draft = false
+++

1 | 2 | 3 | 4
---|---|---|----
a | b | e | g
c | d | f | h
11 changes: 11 additions & 0 deletions example-site/content/posts/table-only-rule-after-first-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "Table with rule after first row"
date = 2017-07-12T19:26:13-04:00
tags = ["table"]
draft = false
+++

1 | 2 | 3 | 4
---|---|---|----
a | b | e | g
c | d | f | h
11 changes: 11 additions & 0 deletions example-site/content/posts/table-top-and-bottom-border.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "Table with top and bottom border"
date = 2017-07-12T19:26:10-04:00
tags = ["table"]
draft = false
+++

1 | 2 | 3 | 4
---|---|---|----
a | b | e | g
c | d | f | h
11 changes: 11 additions & 0 deletions example-site/content/posts/table-top-border.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "Table with top border"
date = 2017-07-12T19:26:04-04:00
tags = ["table"]
draft = false
+++

1 | 2 | 3 | 4
---|---|---|----
a | b | e | g
c | d | f | h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "Table with borders and rule after first"
date = 2017-07-12T19:26:16-04:00
tags = ["table"]
draft = false
+++

1 | 2 | 3 | 4
---|---|---|----
a | b | e | g
c | d | f | h
11 changes: 11 additions & 0 deletions example-site/content/posts/table-with-narrowest-columns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
+++
title = "Table with narrowest cols"
date = 2017-07-12T19:26:00-04:00
tags = ["table"]
draft = false
+++

1 | 2 | 3
---|---|----
a | b | e
c | d | f
13 changes: 13 additions & 0 deletions example-site/content/posts/table-with-rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
+++
title = "Table with rules"
date = 2017-07-12T18:52:43-04:00
tags = ["table"]
draft = false
+++

The rules don’t matter in Markdown export.

1 | 2 | 3
---|---|----
a | b | e
c | d | f
Loading

0 comments on commit b6176f6

Please sign in to comment.