Merge pull request #125 from PuercoPop/3bmd-youtube-plugin

Add 3bmd youtube plugin
This commit is contained in:
Javier Olaechea 2016-10-27 17:02:15 -05:00 committed by GitHub
commit 694c5a9290
2 changed files with 23 additions and 0 deletions

View file

@ -202,3 +202,14 @@ CL-USER> (chirp:complete-authentication "4173325")
:output "/home/redlinernotes/blog/")`
[config_file]: http://github.com/redline6561/coleslaw/blob/master/examples/example.coleslawrc
## Markdown Embeding youtube Youtube
**Description**: Embed youtube videos in markdown using the shorthand syntax
`!yt[<video-id>(|options*)*]`. Options can be *width*, *height* or any of the
[player parameters](https://developers.google.com/youtube/player_parameters).
For example `!yt[oeul8fTG9dM|width=480,allowfullscreen]`.
**Example**: `(3bmd-youtube)`

12
plugins/3bmd-youtube.lisp Normal file
View file

@ -0,0 +1,12 @@
(eval-when (:compile-toplevel :load-toplevel)
(ql:quickload :3bmd-youtube))
(defpackage #:coleslaw-3bmd-youtube
(:use #:cl)
(:export
#:enable))
(in-package #:coleslaw-3bmd-youtube)
(defun enable ()
(setf 3bmd-youtube:*youtube-embeds* t))