youtuber: Addin to create markdown youtube links

Description Usage Details Examples

Description

Highlight youtube link in source editor and it will be converted to a markdown link with an image saved in youtube.

Usage

1

Details

if remedy_opts$get('youtube_output')=='md' then the output will be of the form

[![Alternative text](Youtube Image)](Link to Video). (useful for github readme)

if remedy_opts$get('youtube_output')=='html' then the output will be of the form

<iframe width="remedy_opts$get('youtube_width')" height="remedy_opts$get('youtube_height')" src="link to video" frameborder="0" allowfullscreen></iframe>

Default Settings:

remedy_opts$get('youtube_output'): str(remedy::remedy_opts$get('youtube_output'))

remedy_opts$get('youtube_height'): str(remedy::remedy_opts$get('youtube_height'))

remedy_opts$get('youtube_width'): str(remedy::remedy_opts$get('youtube_width'))

Examples

1
2
3
4
5
6
7
## Not run: 
remedy_example( 
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ", 
    youtuber
    )

## End(Not run)

remedy documentation built on May 2, 2019, 8:30 a.m.