highmark-markdown 0.0.265 → 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 +26 -24
|
@@ -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 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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWZhdWx0TWFya2Rvd25TdHlsZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuY29uc3QgZGVmYXVsdE1hcmtkb3duU3R5bGUgPSBgXG5jb2xvdXI6IGJsYWNrO1xucGFkZGluZzogMjRwdDtcbm1pbi1oZWlnaHQ6IDEwMCU7XG5mb250LWZhbWlseTogXCJDb21wdXRlciBNb2Rlcm4gU2VyaWZcIjtcbmJhY2tncm91bmQtY29sb3VyOiB3aGl0ZTtcblxucHJpbWFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDMycHQ7XG59XG5cbnNlY29uZGFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDI0cHQ7XG59XG5cbnRlcnRpYXJ5SGVhZGluZyB7XG4gIGZvbnQtc2l6ZTogMTdwdDtcbn1cblxucXVhdGVybmFyeUhlYWRpbmcge1xuICBmb250LXNpemU6IDEzcHQ7XG59XG5cbnByaW1hcnlIZWFkaW5nLFxuc2Vjb25kYXJ5SGVhZGluZyxcbnRlcnRpYXJ5SGVhZGluZyxcbnF1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dWx0IGRlZmF1bHRNYXJrZG93blN0eWxlO1xuIl0sIm5hbWVzIjpbImRlZmF1bHRNYXJrZG93blN0eWxlIl0sInJhbmdlTWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OyIsIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFnSkE7OztlQUFBOzs7QUE5SUEsSUFBTUEsdUJBQXdCO0lBOEk5QixXQUFlQSJ9
|
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.",
|
|
@@ -2,41 +2,51 @@
|
|
|
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
|
+
margin: 13pt 0 13pt 0;
|
|
23
33
|
}
|
|
24
34
|
|
|
25
35
|
table,
|
|
26
36
|
paragraph,
|
|
27
37
|
orderedList,
|
|
28
38
|
unorderedList,
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
inlineListing,
|
|
40
|
+
blockListing {
|
|
31
41
|
font-size: 13pt;
|
|
32
|
-
line-height:
|
|
33
|
-
margin:
|
|
42
|
+
line-height: 20pt;
|
|
43
|
+
margin: 13pt 0 13pt 0;
|
|
34
44
|
}
|
|
35
45
|
|
|
36
46
|
orderedListItem,
|
|
37
47
|
unorderedListItem {
|
|
38
|
-
margin: 6pt 0 6pt 0;
|
|
39
|
-
margin-left:
|
|
48
|
+
margin: 6pt 0 6pt 0;
|
|
49
|
+
margin-left: 13pt;
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
table,
|
|
@@ -59,13 +69,6 @@ quaternaryHeading {
|
|
|
59
69
|
}
|
|
60
70
|
}
|
|
61
71
|
|
|
62
|
-
primaryHeading,
|
|
63
|
-
secondaryHeading,
|
|
64
|
-
tertiaryHeading,
|
|
65
|
-
quaternaryHeading {
|
|
66
|
-
font-weight: bold;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
72
|
blockListing,
|
|
70
73
|
inlineListing {
|
|
71
74
|
colour: white;
|
|
@@ -74,6 +77,7 @@ inlineListing {
|
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
blockListing {
|
|
80
|
+
display: block;
|
|
77
81
|
padding: 6pt;
|
|
78
82
|
overflow-x: scroll;
|
|
79
83
|
}
|
|
@@ -81,8 +85,6 @@ blockListing {
|
|
|
81
85
|
inlineListing {
|
|
82
86
|
display: inline-block;
|
|
83
87
|
padding: 0 3pt 0 3pt;
|
|
84
|
-
font-size: 13pt;
|
|
85
|
-
line-height: 15pt;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
table {
|
|
@@ -95,7 +97,7 @@ tableHead {
|
|
|
95
97
|
|
|
96
98
|
tableBodyCell,
|
|
97
99
|
tableHeadCell {
|
|
98
|
-
padding:
|
|
100
|
+
padding: 13pt;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
strongText {
|
|
@@ -113,13 +115,13 @@ stronglyEmphasisedText {
|
|
|
113
115
|
|
|
114
116
|
footnotesList {
|
|
115
117
|
border-top: 1pt solid black;
|
|
116
|
-
padding-top:
|
|
118
|
+
padding-top: 13pt;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
footnoteItem {
|
|
120
122
|
font-size: 11pt;
|
|
121
|
-
line-height:
|
|
122
|
-
margin-left:
|
|
123
|
+
line-height: 17pt;
|
|
124
|
+
margin-left: 13pt;
|
|
123
125
|
|
|
124
126
|
paragraph {
|
|
125
127
|
margin: 0;
|
|
@@ -130,7 +132,7 @@ footnoteItem {
|
|
|
130
132
|
|
|
131
133
|
link {
|
|
132
134
|
font-size: 9pt;
|
|
133
|
-
line-height:
|
|
135
|
+
line-height: 13pt;
|
|
134
136
|
margin-left: 3pt;
|
|
135
137
|
vertical-align: super;
|
|
136
138
|
}
|