File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626* ** [ Full Documentation] ( http://riteshkr.com/embed.js/doc.html ) **
2727* ** [ Examples] ( http://riteshkr.com/embed.js/examples.html ) **
2828
29-
29+ ## Installation
30+
31+ To install the stable version:
32+ ```
33+ npm install --save embed-js
34+ ```
35+
36+
37+
3038## CDN
3139
3240* [ jsDelivr] ( https://www.jsdelivr.com/projects/embed.js )
3341
42+
3443## Simple Usage
3544
3645Let's assume that the HTML structure is as written below
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ <h1>Loading embed.js in a block</h1>
7070 videoJS : true ,
7171 videoWidth : 720 ,
7272 videoDetails : true ,
73- excludeEmbed : [ 'spotify ' ] ,
73+ excludeEmbed : [ 'github ' ] ,
7474 // openGraphEndpoint:'https://opengraph.io/api/1.0/site/${url}',
7575 openGraphExclude : [ 'github' ] ,
7676 googleAuthKey : 'AIzaSyCqFouT8h5DKAbxlrTZmjXEmNBjC69f0ts' ,
@@ -79,8 +79,6 @@ <h1>Loading embed.js in a block</h1>
7979 highlightCode :true ,
8080 codeHighlighter :'prismjs' ,
8181 link : true ,
82- fontIcons :false ,
83- emoji :false ,
8482 // singleEmbed:true,
8583 onOpenGraphFetch : function ( data ) {
8684 data . hybridGraph . success = data . error ? false : true ;
You can’t perform that action at this time.
0 commit comments