highmark-markdown 0.0.263 → 0.0.267
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 +27 -28
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var defaultMarkdownStyle = '\
|
|
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 margin: 13pt 0 13pt 0;\n}\n\ntable,\nparagraph,\norderedList,\nunorderedList,\ninlineListing,\nblockListing {\n font-size: 13pt;\n line-height: 20pt;\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,\norderedListItem,\nunorderedListItem,\nblockListing,\nprimaryHeading,\nsecondaryHeading,\ntertiaryHeading,\nquaternaryHeading {\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: 13pt;\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWZhdWx0TWFya2Rvd25TdHlsZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuY29uc3QgZGVmYXVsdE1hcmtkb3duU3R5bGUgPSBgXG5jb2xvdXI6IGJsYWNrO1xucGFkZGluZzogMjRwdDtcbm1pbi1oZWlnaHQ6IDEwMCU7XG5mb250LWZhbWlseTogXCJDb21wdXRlciBNb2Rlcm4gU2VyaWZcIjtcbmJhY2tncm91bmQtY29sb3VyOiB3aGl0ZTtcblxucHJpbWFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDMycHQ7XG59XG5cbnNlY29uZGFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDI0cHQ7XG59XG5cbnRlcnRpYXJ5SGVhZGluZyB7XG4gIGZvbnQtc2l6ZTogMTdwdDtcbn1cblxucXVhdGVybmFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDEzcHQ7XG59XG5cbnByaW1hcnlIZWFkaW5nLFxuc2Vjb25kYXJ5SGVhZGluZyxcbnRlcnRpYXJ5SGVhZGluZyxcbnF1YXRlcm5hcnlI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bHRNYXJrZG93blN0eWxlO1xuIl0sIm5hbWVzIjpbImRlZmF1bHRNYXJrZG93blN0eWxlIl0sInJhbmdlTWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OyIsIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFnSkE7OztlQUFBOzs7QUE5SUEsSUFBTUEsdUJBQXdCO0lBOEk5QixXQUFlQSJ9
|
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.267",
|
|
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.",
|
|
@@ -1,45 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
const defaultMarkdownStyle = `
|
|
4
|
-
@media preview {
|
|
5
|
-
padding: 12pt;
|
|
6
|
-
min-height: 100%;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
4
|
colour: black;
|
|
5
|
+
padding: 24pt;
|
|
6
|
+
min-height: 100%;
|
|
10
7
|
font-family: "Computer Modern Serif";
|
|
11
8
|
background-colour: white;
|
|
12
9
|
|
|
13
10
|
primaryHeading {
|
|
14
11
|
font-size: 32pt;
|
|
15
|
-
margin: 12pt 0 12pt 0;
|
|
16
12
|
}
|
|
17
13
|
|
|
18
14
|
secondaryHeading {
|
|
19
15
|
font-size: 24pt;
|
|
20
|
-
margin: 12pt 0 12pt 0;
|
|
21
16
|
}
|
|
22
17
|
|
|
23
18
|
tertiaryHeading {
|
|
24
19
|
font-size: 17pt;
|
|
25
|
-
|
|
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
|
+
margin: 13pt 0 13pt 0;
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
table,
|
|
29
36
|
paragraph,
|
|
30
37
|
orderedList,
|
|
31
38
|
unorderedList,
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
inlineListing,
|
|
40
|
+
blockListing {
|
|
34
41
|
font-size: 13pt;
|
|
35
|
-
line-height:
|
|
36
|
-
margin:
|
|
42
|
+
line-height: 20pt;
|
|
43
|
+
margin: 13pt 0 13pt 0;
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
orderedListItem,
|
|
40
47
|
unorderedListItem {
|
|
41
|
-
margin: 6pt 0 6pt 0;
|
|
42
|
-
margin-left:
|
|
48
|
+
margin: 6pt 0 6pt 0;
|
|
49
|
+
margin-left: 13pt;
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
table,
|
|
@@ -62,13 +69,6 @@ quaternaryHeading {
|
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
|
|
65
|
-
primaryHeading,
|
|
66
|
-
secondaryHeading,
|
|
67
|
-
tertiaryHeading,
|
|
68
|
-
quaternaryHeading {
|
|
69
|
-
font-weight: bold;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
72
|
blockListing,
|
|
73
73
|
inlineListing {
|
|
74
74
|
colour: white;
|
|
@@ -77,6 +77,7 @@ inlineListing {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
blockListing {
|
|
80
|
+
display: block;
|
|
80
81
|
padding: 6pt;
|
|
81
82
|
overflow-x: scroll;
|
|
82
83
|
}
|
|
@@ -84,8 +85,6 @@ blockListing {
|
|
|
84
85
|
inlineListing {
|
|
85
86
|
display: inline-block;
|
|
86
87
|
padding: 0 3pt 0 3pt;
|
|
87
|
-
font-size: 13pt;
|
|
88
|
-
line-height: 15pt;
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
table {
|
|
@@ -98,7 +97,7 @@ tableHead {
|
|
|
98
97
|
|
|
99
98
|
tableBodyCell,
|
|
100
99
|
tableHeadCell {
|
|
101
|
-
padding:
|
|
100
|
+
padding: 13pt;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
strongText {
|
|
@@ -116,13 +115,13 @@ stronglyEmphasisedText {
|
|
|
116
115
|
|
|
117
116
|
footnotesList {
|
|
118
117
|
border-top: 1pt solid black;
|
|
119
|
-
padding-top:
|
|
118
|
+
padding-top: 13pt;
|
|
120
119
|
}
|
|
121
120
|
|
|
122
121
|
footnoteItem {
|
|
123
122
|
font-size: 11pt;
|
|
124
|
-
line-height:
|
|
125
|
-
margin-left:
|
|
123
|
+
line-height: 17pt;
|
|
124
|
+
margin-left: 13pt;
|
|
126
125
|
|
|
127
126
|
paragraph {
|
|
128
127
|
margin: 0;
|
|
@@ -133,7 +132,7 @@ footnoteItem {
|
|
|
133
132
|
|
|
134
133
|
link {
|
|
135
134
|
font-size: 9pt;
|
|
136
|
-
line-height:
|
|
135
|
+
line-height: 13pt;
|
|
137
136
|
margin-left: 3pt;
|
|
138
137
|
vertical-align: super;
|
|
139
138
|
}
|