MCPcopy
hub / github.com/icindy/wxParse / getDefaultOpts

Function getDefaultOpts

wxParse/showdown.js:15–100  ·  view source on GitHub ↗

* * showdown: https://github.com/showdownjs/showdown * * author: Di (微信小程序开发工程师) * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) * 垂直微信小程序开发交流社区 * * github地址: https://github.com/icindy/wxParse * * for: 微信小程序富文本解析 * detail : http://weappdev.com/t/wxparse-alpha0-1-

(simple)

Source from the content-addressed store, hash-verified

13 */
14
15function getDefaultOpts(simple) {
16 'use strict';
17
18 var defaultOptions = {
19 omitExtraWLInCodeBlocks: {
20 defaultValue: false,
21 describe: 'Omit the default extra whiteline added to code blocks',
22 type: 'boolean'
23 },
24 noHeaderId: {
25 defaultValue: false,
26 describe: 'Turn on/off generated header id',
27 type: 'boolean'
28 },
29 prefixHeaderId: {
30 defaultValue: false,
31 describe: 'Specify a prefix to generated header ids',
32 type: 'string'
33 },
34 headerLevelStart: {
35 defaultValue: false,
36 describe: 'The header blocks level start',
37 type: 'integer'
38 },
39 parseImgDimensions: {
40 defaultValue: false,
41 describe: 'Turn on/off image dimension parsing',
42 type: 'boolean'
43 },
44 simplifiedAutoLink: {
45 defaultValue: false,
46 describe: 'Turn on/off GFM autolink style',
47 type: 'boolean'
48 },
49 literalMidWordUnderscores: {
50 defaultValue: false,
51 describe: 'Parse midword underscores as literal underscores',
52 type: 'boolean'
53 },
54 strikethrough: {
55 defaultValue: false,
56 describe: 'Turn on/off strikethrough support',
57 type: 'boolean'
58 },
59 tables: {
60 defaultValue: false,
61 describe: 'Turn on/off tables support',
62 type: 'boolean'
63 },
64 tablesHeaderId: {
65 defaultValue: false,
66 describe: 'Add an id to table headers',
67 type: 'boolean'
68 },
69 ghCodeBlocks: {
70 defaultValue: true,
71 describe: 'Turn on/off GFM fenced code blocks support',
72 type: 'boolean'

Callers 1

showdown.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected