diff --git a/README.md b/README.md index 7047f1e..d68f961 100644 --- a/README.md +++ b/README.md @@ -15,32 +15,33 @@ Embed [PDF.js](https://mozilla.github.io/pdf.js/) into your angular application, Note that the order of the scripts being included should stay the same as in the example below. Also note that images, translations and such are being loaded from the `web` folder. -** View ** - - - - - Angular PDF.js demo - - - - - - - - - - - - - - - - - - - - +**View** +```html + + + + Angular PDF.js demo + + + + + + + + + + + + + + + + + + + + +``` The directive takes the following optional attributes to modify the toolbar @@ -48,16 +49,16 @@ The directive takes the following optional attributes to modify the toolbar Omitting these attributes will by default show the options in the toolbar. -** Controller ** - - angular.module('app', ['pdfjs']); - - angular.module('app').controller('AppCtrl', function($scope) { - $scope.pdf = { - src: 'demo/example.pdf' - }; - }); +**Controller** +```js +angular.module('app', ['pdfjs']); +angular.module('app').controller('AppCtrl', function($scope) { + $scope.pdf = { + src: 'demo/example.pdf' + }; +}); +``` ## Demo