MCPcopy
hub / github.com/showdownjs/showdown / getDefaultOpts

Function getDefaultOpts

src/options.js:5–185  ·  view source on GitHub ↗

* Created by Tivie on 13-07-2015.

(simple)

Source from the content-addressed store, hash-verified

3 */
4
5function getDefaultOpts (simple) {
6 'use strict';
7
8 var defaultOptions = {
9 omitExtraWLInCodeBlocks: {
10 defaultValue: false,
11 describe: 'Omit the default extra whiteline added to code blocks',
12 type: 'boolean'
13 },
14 noHeaderId: {
15 defaultValue: false,
16 describe: 'Turn on/off generated header id',
17 type: 'boolean'
18 },
19 prefixHeaderId: {
20 defaultValue: false,
21 describe: 'Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic \'section-\' prefix',
22 type: 'string'
23 },
24 rawPrefixHeaderId: {
25 defaultValue: false,
26 describe: 'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',
27 type: 'boolean'
28 },
29 ghCompatibleHeaderId: {
30 defaultValue: false,
31 describe: 'Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)',
32 type: 'boolean'
33 },
34 rawHeaderId: {
35 defaultValue: false,
36 describe: 'Remove only spaces, \' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids',
37 type: 'boolean'
38 },
39 headerLevelStart: {
40 defaultValue: false,
41 describe: 'The header blocks level start',
42 type: 'integer'
43 },
44 parseImgDimensions: {
45 defaultValue: false,
46 describe: 'Turn on/off image dimension parsing',
47 type: 'boolean'
48 },
49 simplifiedAutoLink: {
50 defaultValue: false,
51 describe: 'Turn on/off GFM autolink style',
52 type: 'boolean'
53 },
54 excludeTrailingPunctuationFromURLs: {
55 defaultValue: false,
56 describe: 'Excludes trailing punctuation from links generated with autoLinking',
57 type: 'boolean'
58 },
59 literalMidWordUnderscores: {
60 defaultValue: false,
61 describe: 'Parse midword underscores as literal underscores',
62 type: 'boolean'

Callers 2

allOptionsOnFunction · 0.85
showdown.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…