diff --git a/changelog.md b/changelog.md index f16c67f..13c8316 100644 --- a/changelog.md +++ b/changelog.md @@ -3,10 +3,7 @@ ##### v.2.0.0 - 2015-02-25 * smaller, simplier code-base -* new API. Example usage: - - autosize(document.querySelectorAll(textarea)); - +* new API. Example usage: `autosize(document.querySelectorAll(textarea));` * dropped jQuery dependency * dropped IE7-IE8 support * dropped optional parameters diff --git a/readme.md b/readme.md index e6552d0..3c5c2ee 100644 --- a/readme.md +++ b/readme.md @@ -82,6 +82,7 @@ var ta = document.querySelector('textarea'); ta.addEventListener('autosize.resized', function(){ console.log('textarea height updated'); }); +``` ### Differences between v2 and v1