-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathModuleConfig.cfc
87 lines (82 loc) · 3.25 KB
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/**
* Ortus Markdown Module
* Copyright 2013 Ortus Solutions, Corp
* www.ortussolutions.com
* ---
* Module Configuration
*/
component {
// Module Properties
this.title = "ColdBox Markdown Processor";
this.author = "Ortus Solutions, Corp";
this.webURL = "http://www.ortussolutions.com/products/codexwiki";
this.description = "Markdown processor for ColdBox applications";
this.version = "@build.version@+@build.number@";
// If true, looks for views in the parent first, if not found, then in the module. Else vice-versa
this.viewParentLookup = true;
// If true, looks for layouts in the parent first, if not found, then in module. Else vice-versa
this.layoutParentLookup = true;
// CF Mapping
this.cfmapping = "cbmarkdown";
// Module Dependencies That Must Be Loaded First, use internal names or aliases
this.dependencies = [ "cbjavaloader", "cbemoji" ];
/**
* Configure this module
*/
function configure(){
settings = {
// Looks for www or emails and converts them to links
autoLinkUrls : true,
// Creates anchor links for headings
anchorLinks : true,
// Set the anchor id
anchorSetId : true,
// Set the anchor id but also the name
achorSetName : true,
// Do we create the anchor for the full header or just before it. True is wrap, false is just create anchor tag
anchorWrapText : false,
// The class(es) to apply to the anchor
anchorClass : "anchor",
// raw html prefix. Added before heading text, wrapped or unwrapped
anchorPrefix : "",
// raw html suffix. Added before heading text, wrapped or unwrapped
anchorSuffix : "",
// Enable youtube embedded link transformer
enableYouTubeTransformer : false,
// default null, custom inline code open HTML
codeStyleHTMLOpen : "<code>",
// default null, custom inline code close HTML
codeStyleHTMLClose : "</code>",
// default "language-", prefix used for generating the <code> class for a fenced code block, only used if info is not empty and language is not defined in
fencedCodeLanguageClassPrefix : "language-",
// Table options
tableOptions : {
// Treat consecutive pipes at the end of a column as defining spanning column.
columnSpans : true,
// Whether table body columns should be at least the number or header columns.
appendMissingColumns : true,
// Whether to discard body columns that are beyond what is defined in the header
discardExtraColumns : true,
// Class name to use on tables
className : "table",
// When true only tables whose header lines contain the same number of columns as the separator line will be recognized
headerSeparationColumnMatch : true
}
};
}
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
// Class load FlexMark Processor
controller
.getWireBox()
.getInstance( "loader@cbjavaloader" )
.appendPaths( variables.modulePath & "/models/lib" );
}
/**
* Fired when the module is unregistered and unloaded
*/
function onUnload(){
}
}