Skip to content

Commit

Permalink
Small README fixed (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri authored Aug 14, 2020
1 parent d9fbd69 commit 84cb305
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/optimizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ const ampOptimizer = AmpOptimizer.create({

Available options are:

- [autoAddBoilerplate](#autoaddboilerplate)
- [autoAddMandatoryTags](#autoaddmandatorytags)
- [autoExtensionImport](#autoextensionimport)
- [fetch](#fetch)
- [format](#format)
- [imageBasePath](#imagebasePath)
- [imageOptimizer](#imageoptimizer)
Expand Down Expand Up @@ -289,7 +290,7 @@ const originalHtml = `
const opts = {
canonical: '/example.html'
}
ampOptimizer.transformHtml(originalHtml, params).then((optimizedHtml) => {
ampOptimizer.transformHtml(originalHtml, opts).then((optimizedHtml) => {
// optimizedHtml will be a valid AMP document
console.log(optimizedHtml);
});
Expand Down

0 comments on commit 84cb305

Please # to comment.