Skip to content

Commit

Permalink
none in fragment style list to disable list item's fragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yujie Wen committed Feb 25, 2015
1 parent 220eaeb commit 07900f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 7 additions & 2 deletions Readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -324,18 +324,23 @@ $ git clone https://github.com/yjwen/org-reveal.git
To define fragment styles for every list item, please enumerate
each item's style within parenthesis.
#+BEGIN_SRC org
,#+ATTR_REVEAL: :frag (grow shrink roll-in fade-out)
,#+ATTR_REVEAL: :frag (grow shrink roll-in fade-out none)
* I will grow.
* I will shrink.
* I rolled in.
* I will fade out.
* I don't fragment.
#+END_SRC

#+ATTR_REVEAL: :frag (grow shrink roll-in fade-out)
~none~ in the style list will disable fragment for the
corresponding list item.

#+ATTR_REVEAL: :frag (grow shrink roll-in fade-out none)
* I will grow.
* I will shrink.
* I rolled in.
* I will fade out.
* I don't fragment.

** Data State
:PROPERTIES:
Expand Down
9 changes: 5 additions & 4 deletions ox-reveal.el
Original file line number Diff line number Diff line change
Expand Up @@ -821,10 +821,11 @@ transformed fragment attribute to ELEM's attr_html plist."
(lambda (item frag)
"Overwrite item's `:checkbox' property with
reveal's fragment attribute."
(org-element-put-property
item :checkbox
(intern (cond ((string= frag t) "fragment")
(t (format "fragment %s" frag))))))
(and (not (string= frag "none"))
(org-element-put-property
item :checkbox
(intern (cond ((string= frag t) "fragment")
(t (format "fragment %s" frag)))))))
(org-element-contents elem)
(car (read-from-string frag-attr))))
(t
Expand Down

0 comments on commit 07900f2

Please sign in to comment.