Skip to content

Commit

Permalink
added styles docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yogthos committed Jan 29, 2014
1 parent 9b8e6bf commit 68eacb4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Expand Up @@ -326,6 +326,7 @@ optional metadata:
* :id name of the anchor
* :target an external link or a name of the anchor this anchor points to, if referencing another anchor then prefix target with #
* :style font
* :styles a vector of font styles
* :leading number

content:
Expand Down Expand Up @@ -382,7 +383,8 @@ font metadata (refer to Font section for details)
* :family
* :ttf-name
* :size
* :style
* :style
* :styles
* :color
* :background [r b g]

Expand All @@ -391,6 +393,8 @@ Note that when using `:ttf-name`, you should set `:register-system-fonts? true`
```clojure
[:chunk {:style :bold} "small chunk of text"]

[:chunk {:styles [:bold :italic]} "small chunk of text"]

[:chunk {:background [0 255 0]} "green chunk"]

[:chunk {:color [0 0 0] :background [255 0 0]} "more fun with color"]
Expand Down Expand Up @@ -432,6 +436,7 @@ optional metadata:

* :align specifies alignement of heading possible valuse :left, :center, :right, :justified
* :style font (refer to Font section for details)
* :styles font (refer to Font section for details)

```clojure
[:heading "Lorem Ipsum"]
Expand Down Expand Up @@ -559,6 +564,7 @@ font metadata (refer to Font section for details)
* :ttf-name
* :size
* :style
* :styles
* :color

content:
Expand Down Expand Up @@ -595,7 +601,8 @@ font metadata (refer to Font section for details)
* :family
* :ttf-name
* :size
* :style
* :style
* :styles
* :color

content:
Expand Down Expand Up @@ -684,6 +691,7 @@ tag :subscript
optional metadata:

* :style font
* :styles fonts

creates a text chunk in subscript

Expand All @@ -700,7 +708,8 @@ tag :superscript
optional metadata:

* :style font

* :styles fonts

creates a text chunk in subscript

```clojure
Expand Down

0 comments on commit 68eacb4

Please sign in to comment.