Skip to content

Commit

Permalink
Switch to true Markdown options as default
Browse files Browse the repository at this point in the history
It turns to `true` the `html` and `linkify` options of `markdown-it`.
This is more similar behavior with the previous Markdown parser. Fixes yui#344.
  • Loading branch information
okuryu committed Apr 27, 2015
1 parent e7f2698 commit ec86ec3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ based templates to generate static HTML content
*/

YUI.add('doc-builder', function (Y) {
var defaultMarkdownOption = {
html: true,
linkify: true
};

var fixType = Y.Lang.fixType,
print = function (items) {
var out = '<ul>';
Expand Down Expand Up @@ -52,7 +57,7 @@ YUI.add('doc-builder', function (Y) {
if (options.themedir) {
themeDir = options.themedir;
}
this.md = new MarkdownIt(options.markdown);
this.md = new MarkdownIt(Y.merge(defaultMarkdownOption, options.markdown));
this.data = data;
Y.log('Building..', 'info', 'builder');
this.files = 0;
Expand Down

0 comments on commit ec86ec3

Please sign in to comment.