From 5a4ae79c54ed26fc7e8b832a038c99423a7337b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Thu, 18 Jun 2015 01:22:42 +0100 Subject: [PATCH] Release 1.1.0 --- CHANGELOG.md | 31 ++++++++++++++++++++++++++++--- README.md | 7 +++++++ dist/showdown.js | Bin 55233 -> 55233 bytes dist/showdown.js.map | Bin 178103 -> 180654 bytes dist/showdown.min.js | Bin 17921 -> 17921 bytes 5 files changed, 35 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index befbc5c..a3fa2d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,35 @@ + +## 1.1.0 (2015-06-18) + + +#### Bug Fixes + +* **converter.js:** add error if the passed constructor argument is not an object ([d86ed450](http://github.com/showdownjs/showdown/commit/d86ed450)) +* **output modifiers:** fix for output modifiers running twice ([dcbdc61e](http://github.com/showdownjs/showdown/commit/dcbdc61e)) + + +#### Features + +* **headerLevelStart:** add support for setting the header starting level ([b84ac67d](http://github.com/showdownjs/showdown/commit/b84ac67d), closes [#69](http://github.com/showdownjs/showdown/issues/69)) +* **image dimensions:** add support for setting image dimensions within markdown syntax ([af82c2b6](http://github.com/showdownjs/showdown/commit/af82c2b6), closes [#143](http://github.com/showdownjs/showdown/issues/143)) +* **noHeaderId:** add option to suppress automatic generation of ids in headers ([7ac893e9](http://github.com/showdownjs/showdown/commit/7ac893e9)) +* **showdown.getDefaultOptions:** add method to retrieve default global options keypairs ([2de53a7d](http://github.com/showdownjs/showdown/commit/2de53a7d)) + + +#### Breaking Changes + +* Deprecates `showdown.extensions` property. To migrate, extensions should use the new method `showdown.extension(, )` to register. + For more information on the new extension loading mechanism, please check the wiki pages. + ([4ebd0caa](http://github.com/showdownjs/showdown/commit/4ebd0caa)) + + ### 1.0.2 (2015-05-28) #### Bug Fixes - * **Gruntfile.js** add missing comma in footer. This bug prevented concatenating other js scripts and libraries - with showdown([5315508](http://github.com/showdownjs/showdown/commit/5315508). Credits to Alexandre Courtiol. +* **Gruntfile.js** add missing comma in footer. This bug prevented concatenating other js scripts and libraries + with showdown([5315508](http://github.com/showdownjs/showdown/commit/5315508). Credits to Alexandre Courtiol. @@ -43,7 +68,7 @@ This is a major code refactor with some big changes such as: #### Features * **registerExtension():** new extension loading mechanism. Now extensions can be registered using this function. -The system, however, is not final and will probably be changed until the final version([0fd10cb] (http://github.com/showdownjs/showdown/commit/0fd10cb)) + The system, however, is not final and will probably be changed until the final version([0fd10cb] (http://github.com/showdownjs/showdown/commit/0fd10cb)) * **allowBlockIndents:** indented inline block elements can now be parsed as markdown ([f6326b84](http://github.com/showdownjs/showdown/commit/f6326b84)) * **omitExtraWLInCodeBlocks:** add option to omit extra newline at the end of codeblocks ([141e3f5](http://github.com/showdownjs/showdown/commit/141e3f5)) * **prefixHeaderId:** add options to prefix header ids to prevent id clash ([141e3f5](http://github.com/showdownjs/showdown/commit/141e3f5)) diff --git a/README.md b/README.md index 6cf2ec3..13c5aea 100644 --- a/README.md +++ b/README.md @@ -137,6 +137,13 @@ var showdownGlobalOptions = showdown.getOptions(); var thisConverterSpecificOptions = conveter.getOptions(); ``` +### Retrieve the default options + +You can get showdown's default options with: +```js +var defaultOptions = showdown.getDefaultOptions(); +``` + ### Valid Options * **omitExtraWLInCodeBlocks**: (boolean) [default false] Omit the trailing newline in a code block. Ex: diff --git a/dist/showdown.js b/dist/showdown.js index 5effdaead606c275608885281b5b4fce9a0c2400..35267c0a7e62c24e13822912258e44cd30cbd582 100644 GIT binary patch delta 27 jcmX@Op84QedpeU09I!n--my4|M#Bt zcYf#Gxc{np&wc*RyA|-_oJiot`Q=N^$E0EEZg^ zsG!H90FBuXlW(J4w1BoirbOdX=8O9duxS3C*`ZMx3%YuhZ(C``Vv}hxXe$%&=u+kf z{mKZ4S*LP;_>?{r4SGKK`b47bZqis8s(_Mszu3D=O{Tj`Gs;Y+G9e^mp~qM8ZZtj zq=Hgt{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 8ec0652c32ae7d0d636a3667aa8658782e3dfa57..b61c5988747d368c81640350aa1cc6084d1a3d19 100644 GIT binary patch delta 26 hcmZqdVQlPSk8*vS9M6##CR2)_UT delta 26 hcmZqdVQlPSio-^l;T6##CM2)+OS