Skip to content

Commit

Permalink
fix(ie8 compatibility): Improve ie8 compatibility
Browse files Browse the repository at this point in the history
Several fixes to improve compatibility with Internet Explorer 8

Closes #275, Closes #271
  • Loading branch information
tivie committed Jul 20, 2016
1 parent faf74aa commit 984942e
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 33 deletions.
30 changes: 15 additions & 15 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.

2 changes: 1 addition & 1 deletion 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.

30 changes: 15 additions & 15 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,72 +7,72 @@ function getDefaultOpts(simple) {

var defaultOptions = {
omitExtraWLInCodeBlocks: {
default: false,
defaultValue: false,
describe: 'Omit the default extra whiteline added to code blocks',
type: 'boolean'
},
noHeaderId: {
default: false,
defaultValue: false,
describe: 'Turn on/off generated header id',
type: 'boolean'
},
prefixHeaderId: {
default: false,
defaultValue: false,
describe: 'Specify a prefix to generated header ids',
type: 'string'
},
headerLevelStart: {
default: false,
defaultValue: false,
describe: 'The header blocks level start',
type: 'integer'
},
parseImgDimensions: {
default: false,
defaultValue: false,
describe: 'Turn on/off image dimension parsing',
type: 'boolean'
},
simplifiedAutoLink: {
default: false,
defaultValue: false,
describe: 'Turn on/off GFM autolink style',
type: 'boolean'
},
literalMidWordUnderscores: {
default: false,
defaultValue: false,
describe: 'Parse midword underscores as literal underscores',
type: 'boolean'
},
strikethrough: {
default: false,
defaultValue: false,
describe: 'Turn on/off strikethrough support',
type: 'boolean'
},
tables: {
default: false,
defaultValue: false,
describe: 'Turn on/off tables support',
type: 'boolean'
},
tablesHeaderId: {
default: false,
defaultValue: false,
describe: 'Add an id to table headers',
type: 'boolean'
},
ghCodeBlocks: {
default: true,
defaultValue: true,
describe: 'Turn on/off GFM fenced code blocks support',
type: 'boolean'
},
tasklists: {
default: false,
defaultValue: false,
describe: 'Turn on/off GFM tasklist support',
type: 'boolean'
},
smoothLivePreview: {
default: false,
defaultValue: false,
describe: 'Prevents weird effects in live previews due to incomplete input',
type: 'boolean'
},
smartIndentationFix: {
default: false,
defaultValue: false,
description: 'Tries to smartly fix identation in es6 strings',
type: 'boolean'
}
Expand All @@ -83,7 +83,7 @@ function getDefaultOpts(simple) {
var ret = {};
for (var opt in defaultOptions) {
if (defaultOptions.hasOwnProperty(opt)) {
ret[opt] = defaultOptions[opt].default;
ret[opt] = defaultOptions[opt].defaultValue;
}
}
return ret;
Expand Down

0 comments on commit 984942e

Please sign in to comment.