Skip to content

Commit

Permalink
feature(extensionLoading): add support to legacy extensions in the ne…
Browse files Browse the repository at this point in the history
…w extension mechanism

Old extensions that register themselves in `showdown.extensions` can be loaded and validated using the new extension loading mechanism.
However, a warn is issued, alerting users and developers that the extension should be updated to use the new mechanism

BREAKING CHANGE: Deprecates `showdown.extensions` property. To migrate, you should use the new method `showdown.extension(<ext name>, <extension>)` to register the extension.
  • Loading branch information
tivie committed Jun 7, 2015
1 parent e7cb15f commit 4ebd0ca
Show file tree
Hide file tree
Showing 12 changed files with 331 additions and 192 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ module.exports = function (grunt) {

require('load-grunt-tasks')(grunt);

grunt.registerTask('concatenate', ['concat']);
grunt.registerTask('lint', ['jshint', 'jscs']);
grunt.registerTask('test', ['lint', 'concat', 'simplemocha']);
grunt.registerTask('test-without-building', ['simplemocha']);
grunt.registerTask('build', ['lint', 'test', 'uglify']);
grunt.registerTask('build', ['test', 'uglify']);
grunt.registerTask('prep-release', ['build', 'changelog']);

// Default task(s).
Expand Down
238 changes: 148 additions & 90 deletions dist/showdown.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/showdown.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/showdown.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/showdown.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"url": "https://github.com/showdownjs/showdown.git",
"web": "https://github.com/showdownjs/showdown"
},
"license": "BSD",
"license": "BSD-2-Clause",
"main": "./dist/showdown.js",
"scripts": {
"test": "grunt test"
Expand Down
Loading

0 comments on commit 4ebd0ca

Please sign in to comment.