highmark-markdown 0.0.265 → 0.0.268
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example.js +2 -2
- package/lib/defaultMarkdownStyle.js +2 -2
- package/package.json +1 -1
- package/src/defaultMarkdownStyle.js +40 -27
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var defaultMarkdownStyle = '\ncolour: black;\npadding:
|
|
11
|
+
var defaultMarkdownStyle = '\ncolour: black;\npadding: 24pt;\nmin-height: 100%;\nfont-family: "Computer Modern Serif";\nbackground-colour: white;\n\nprimaryHeading {\n font-size: 32pt;\n}\n\nsecondaryHeading {\n font-size: 24pt;\n}\n\ntertiaryHeading {\n font-size: 17pt;\n}\n\nquaternaryHeading {\n font-size: 13pt;\n}\n\nprimaryHeading,\nsecondaryHeading,\ntertiaryHeading,\nquaternaryHeading {\n line-height: 1;\n font-weight: bold;\n}\n\nparagraph,\ntableCell,\nblockListing,\ninlineListing,\norderedListItem,\nunorderedListItem {\n font-size: 13pt;\n line-height: 20pt;\n}\n\ntable,\nparagraph,\norderedList,\nunorderedList,\nblockListing,\ninlineListing,\nprimaryHeading,\nsecondaryHeading,\ntertiaryHeading,\nquaternaryHeading {\n margin: 13pt 0 13pt 0;\n}\n\norderedListItem,\nunorderedListItem {\n margin: 6pt 0 6pt 0;\n margin-left: 13pt;\n}\n\ntable,\nparagraph,\norderedList,\nunorderedList,\nblockListing,\nprimaryHeading,\nsecondaryHeading,\ntertiaryHeading,\nquaternaryHeading,\norderedListItem,\nunorderedListItem {\n :first-child {\n margin-top: 0;\n }\n \n :last-child {\n margin-bottom: 0;\n }\n}\n\nblockListing,\ninlineListing {\n colour: white;\n background-colour: black;\n font-family: "Computer Modern Typewriter";\n}\n\nblockListing {\n display: block;\n padding: 6pt;\n overflow-x: scroll;\n}\n\ninlineListing {\n display: inline-block;\n padding: 0 3pt 0 3pt;\n}\n\ntable {\n border-collapse: collapse;\n}\n\ntableHead {\n border: 1pt solid black;\n}\n\ntableBodyCell,\ntableHeadCell {\n padding: 13pt;\n}\n\nstrongText {\n font-weight: bold;\n}\n\nemphasisedText {\n font-style: italic;\n}\n\nstronglyEmphasisedText {\n font-style: italic;\n font-weight: bold;\n}\n\nfootnotesList {\n border-top: 1pt solid black;\n padding-top: 13pt;\n}\n\nfootnoteItem {\n font-size: 11pt;\n line-height: 17pt;\n margin-left: 13pt;\n \n paragraph {\n margin: 0;\n font-size: 11pt;\n line-height: 17pt;\n }\n}\n\nlink {\n font-size: 9pt;\n line-height: 13pt;\n margin-left: 3pt;\n vertical-align: super;\n}\n\nerror {\n text-decoration: underline red;\n}\n';
|
|
12
12
|
var _default = defaultMarkdownStyle;
|
|
13
13
|
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWZhdWx0TWFya2Rvd25TdHlsZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuY29uc3QgZGVmYXVsdE1hcmtkb3duU3R5bGUgPSBgXG5jb2xvdXI6IGJsYWNrO1xucGFkZGluZzogMjRwdDtcbm1pbi1oZWlnaHQ6IDEwMCU7XG5mb250LWZhbWlseTogXCJDb21wdXRlciBNb2Rlcm4gU2VyaWZcIjtcbmJhY2tncm91bmQtY29sb3VyOiB3aGl0ZTtcblxucHJpbWFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDMycHQ7XG59XG5cbnNlY29uZGFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDI0cHQ7XG59XG5cbnRlcnRpYXJ5SGVhZGluZyB7XG4gIGZvbnQtc2l6ZTogMTdwdDtcbn1cblxucXVhdGVybmFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDEzcHQ7XG59XG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LXNpemU6IDExcHQ7XG4gICAgbGluZS1oZWlnaHQ6IDE3cHQ7XG4gIH1cbn1cblxubGluayB7XG4gIGZvbnQtc2l6ZTogOXB0O1xuICBsaW5lLWhlaWdodDogMTNwdDtcbiAgbWFyZ2luLWxlZnQ6IDNwdDtcbiAgdmVydGljYWwtYWxpZ246IHN1cGVyO1xufVxuXG5lcnJvciB7XG4gIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lIHJlZDtcbn1cbmA7XG5cbmV4cG9ydCBkZWZhdWx0IGRlZmF1bHRNYXJrZG93blN0eWxlO1xuIl0sIm5hbWVzIjpbImRlZmF1bHRNYXJrZG93blN0eWxlIl0sInJhbmdlTWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OyIsIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkEySkE7OztlQUFBOzs7QUF6SkEsSUFBTUEsdUJBQXdCO0lBeUo5QixXQUFlQSJ9
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "highmark-markdown",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.268",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/highmark-markdown",
|
|
7
7
|
"description": "Highmark's Markdown and Markdown Style languages.",
|
|
@@ -2,24 +2,43 @@
|
|
|
2
2
|
|
|
3
3
|
const defaultMarkdownStyle = `
|
|
4
4
|
colour: black;
|
|
5
|
-
padding:
|
|
5
|
+
padding: 24pt;
|
|
6
6
|
min-height: 100%;
|
|
7
7
|
font-family: "Computer Modern Serif";
|
|
8
8
|
background-colour: white;
|
|
9
9
|
|
|
10
10
|
primaryHeading {
|
|
11
11
|
font-size: 32pt;
|
|
12
|
-
margin: 12pt 0 12pt 0;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
secondaryHeading {
|
|
16
15
|
font-size: 24pt;
|
|
17
|
-
margin: 12pt 0 12pt 0;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
tertiaryHeading {
|
|
21
19
|
font-size: 17pt;
|
|
22
|
-
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
quaternaryHeading {
|
|
23
|
+
font-size: 13pt;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
primaryHeading,
|
|
27
|
+
secondaryHeading,
|
|
28
|
+
tertiaryHeading,
|
|
29
|
+
quaternaryHeading {
|
|
30
|
+
line-height: 1;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
paragraph,
|
|
35
|
+
tableCell,
|
|
36
|
+
blockListing,
|
|
37
|
+
inlineListing,
|
|
38
|
+
orderedListItem,
|
|
39
|
+
unorderedListItem {
|
|
40
|
+
font-size: 13pt;
|
|
41
|
+
line-height: 20pt;
|
|
23
42
|
}
|
|
24
43
|
|
|
25
44
|
table,
|
|
@@ -27,29 +46,31 @@ paragraph,
|
|
|
27
46
|
orderedList,
|
|
28
47
|
unorderedList,
|
|
29
48
|
blockListing,
|
|
49
|
+
inlineListing,
|
|
50
|
+
primaryHeading,
|
|
51
|
+
secondaryHeading,
|
|
52
|
+
tertiaryHeading,
|
|
30
53
|
quaternaryHeading {
|
|
31
|
-
|
|
32
|
-
line-height: 15pt;
|
|
33
|
-
margin: 12pt 0 12pt 0;
|
|
54
|
+
margin: 13pt 0 13pt 0;
|
|
34
55
|
}
|
|
35
56
|
|
|
36
57
|
orderedListItem,
|
|
37
58
|
unorderedListItem {
|
|
38
|
-
margin: 6pt 0 6pt 0;
|
|
39
|
-
margin-left:
|
|
59
|
+
margin: 6pt 0 6pt 0;
|
|
60
|
+
margin-left: 13pt;
|
|
40
61
|
}
|
|
41
62
|
|
|
42
63
|
table,
|
|
43
64
|
paragraph,
|
|
44
65
|
orderedList,
|
|
45
66
|
unorderedList,
|
|
46
|
-
orderedListItem,
|
|
47
|
-
unorderedListItem,
|
|
48
67
|
blockListing,
|
|
49
68
|
primaryHeading,
|
|
50
69
|
secondaryHeading,
|
|
51
70
|
tertiaryHeading,
|
|
52
|
-
quaternaryHeading
|
|
71
|
+
quaternaryHeading,
|
|
72
|
+
orderedListItem,
|
|
73
|
+
unorderedListItem {
|
|
53
74
|
:first-child {
|
|
54
75
|
margin-top: 0;
|
|
55
76
|
}
|
|
@@ -59,13 +80,6 @@ quaternaryHeading {
|
|
|
59
80
|
}
|
|
60
81
|
}
|
|
61
82
|
|
|
62
|
-
primaryHeading,
|
|
63
|
-
secondaryHeading,
|
|
64
|
-
tertiaryHeading,
|
|
65
|
-
quaternaryHeading {
|
|
66
|
-
font-weight: bold;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
83
|
blockListing,
|
|
70
84
|
inlineListing {
|
|
71
85
|
colour: white;
|
|
@@ -74,6 +88,7 @@ inlineListing {
|
|
|
74
88
|
}
|
|
75
89
|
|
|
76
90
|
blockListing {
|
|
91
|
+
display: block;
|
|
77
92
|
padding: 6pt;
|
|
78
93
|
overflow-x: scroll;
|
|
79
94
|
}
|
|
@@ -81,8 +96,6 @@ blockListing {
|
|
|
81
96
|
inlineListing {
|
|
82
97
|
display: inline-block;
|
|
83
98
|
padding: 0 3pt 0 3pt;
|
|
84
|
-
font-size: 13pt;
|
|
85
|
-
line-height: 15pt;
|
|
86
99
|
}
|
|
87
100
|
|
|
88
101
|
table {
|
|
@@ -95,7 +108,7 @@ tableHead {
|
|
|
95
108
|
|
|
96
109
|
tableBodyCell,
|
|
97
110
|
tableHeadCell {
|
|
98
|
-
padding:
|
|
111
|
+
padding: 13pt;
|
|
99
112
|
}
|
|
100
113
|
|
|
101
114
|
strongText {
|
|
@@ -113,24 +126,24 @@ stronglyEmphasisedText {
|
|
|
113
126
|
|
|
114
127
|
footnotesList {
|
|
115
128
|
border-top: 1pt solid black;
|
|
116
|
-
padding-top:
|
|
129
|
+
padding-top: 13pt;
|
|
117
130
|
}
|
|
118
131
|
|
|
119
132
|
footnoteItem {
|
|
120
133
|
font-size: 11pt;
|
|
121
|
-
line-height:
|
|
122
|
-
margin-left:
|
|
134
|
+
line-height: 17pt;
|
|
135
|
+
margin-left: 13pt;
|
|
123
136
|
|
|
124
137
|
paragraph {
|
|
125
138
|
margin: 0;
|
|
126
139
|
font-size: 11pt;
|
|
127
|
-
line-height:
|
|
140
|
+
line-height: 17pt;
|
|
128
141
|
}
|
|
129
142
|
}
|
|
130
143
|
|
|
131
144
|
link {
|
|
132
145
|
font-size: 9pt;
|
|
133
|
-
line-height:
|
|
146
|
+
line-height: 13pt;
|
|
134
147
|
margin-left: 3pt;
|
|
135
148
|
vertical-align: super;
|
|
136
149
|
}
|