Skip to content

Commit

Permalink
fix youtube handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nicferrier committed Jul 16, 2013
1 parent 6bbea17 commit e827d6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions creole-tests.el
Expand Up @@ -168,10 +168,11 @@ broken over lines]]")))))
(should
(equal
(creole-image-parse "{{youtube:WcUwCsAhWMk|a nice video on emacs-lisp}}")
"<iframe src=\"//www.youtube.com/embed/WcUwCsAhWMk\"
"<span class=\"youtube\"><iframe src=\"//www.youtube.com/embed/WcUwCsAhWMk\"
width=\"420\" height=\"315\"
frameborder=\"0\" allowfullscreen></iframe>
<em>a nice video on emacs-lisp</em>"
<em>a nice video on emacs-lisp</em>
</span>"
))))

(ert-deftest creole-block-parse ()
Expand Down
4 changes: 2 additions & 2 deletions creole.el
Expand Up @@ -253,12 +253,12 @@ This creole:
will produce this HTML:
<div class=\"youtube\">
<span class=\"youtube\">
<iframe src=\"//www.youtube.com/embed/WcUwCsAhWMk\"
width=\"420\" height=\"315\"
frameborder=\"0\" allowfullscreen></iframe>
<em>a nice video on emacs-lisp</em>
</div>
</span>
The link resolver is not consulted to resolve the link."
;; Just the youtube iframe thing
Expand Down

0 comments on commit e827d6c

Please sign in to comment.