markdown-to-html-cli 3.4.3 → 3.4.4
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.
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @uiw/github-corners@1.5.
|
|
2
|
+
* @uiw/github-corners@1.5.12
|
|
3
3
|
* https://github.com/uiwjs/react-github-corners
|
|
4
4
|
*/
|
|
5
|
-
const scriptString = `const
|
|
6
|
-
|
|
5
|
+
const scriptString = `const GITHUB_CORNERS_TEMPLATE = document.createElement("template");
|
|
6
|
+
GITHUB_CORNERS_TEMPLATE.innerHTML = \`
|
|
7
7
|
<style>
|
|
8
|
-
:host a:hover .octo-arm {
|
|
9
|
-
animation: octocat-wave 560ms ease-in-out;
|
|
10
|
-
}
|
|
8
|
+
:host a:hover .octo-arm { animation: octocat-wave 560ms ease-in-out; }
|
|
11
9
|
@keyframes octocat-wave {
|
|
12
|
-
0%, 100% {
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
20%, 60% {
|
|
16
|
-
transform: rotate(-25deg);
|
|
17
|
-
}
|
|
18
|
-
40%, 80% {
|
|
19
|
-
transform: rotate(10deg);
|
|
20
|
-
}
|
|
10
|
+
0%, 100% { transform: rotate(0); }
|
|
11
|
+
20%, 60% { transform: rotate(-25deg); }
|
|
12
|
+
40%, 80% { transform: rotate(10deg); }
|
|
21
13
|
}
|
|
22
14
|
@media (max-width:500px) {
|
|
23
|
-
:host a:hover .octo-arm {
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
:host .octo-arm {
|
|
27
|
-
animation: octocat-wave 560ms ease-in-out;
|
|
28
|
-
}
|
|
15
|
+
:host a:hover .octo-arm { animation: none; }
|
|
16
|
+
:host .octo-arm { animation: octocat-wave 560ms ease-in-out; }
|
|
29
17
|
}
|
|
30
18
|
</style>
|
|
31
19
|
<svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true" style="position: absolute; border: 0px; top: 0px;">
|
|
@@ -43,7 +31,7 @@ export class GithubCorners extends HTMLElement {
|
|
|
43
31
|
super();
|
|
44
32
|
this.right = '0';
|
|
45
33
|
this.shadow = this.attachShadow({ mode: 'open' });
|
|
46
|
-
this.shadow.appendChild(this.ownerDocument.importNode(
|
|
34
|
+
this.shadow.appendChild(this.ownerDocument.importNode(GITHUB_CORNERS_TEMPLATE.content, true));
|
|
47
35
|
this.update();
|
|
48
36
|
}
|
|
49
37
|
static get observedAttributes() {
|
|
@@ -90,6 +78,7 @@ export function githubCorners(opts) {
|
|
|
90
78
|
properties: {
|
|
91
79
|
target: '__blank',
|
|
92
80
|
position: 'fixed',
|
|
81
|
+
'z-index': 999,
|
|
93
82
|
href,
|
|
94
83
|
},
|
|
95
84
|
children: []
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-corners.js","sourceRoot":"","sources":["../../src/nodes/github-corners.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,YAAY,GAAG
|
|
1
|
+
{"version":3,"file":"github-corners.js","sourceRoot":"","sources":["../../src/nodes/github-corners.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDA+DmC,CAAC;AAEzD,MAAM,UAAU,aAAa,CAAC,IAAmB;IAC/C,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,IAAI,EAAE;QACT,OAAO;KACR;IACD,OAAO;QACL;YACE,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,gBAAgB;YACzB,UAAU,EAAE;gBACV,MAAM,EAAE,SAAS;gBACjB,QAAQ,EAAE,OAAO;gBACjB,SAAS,EAAE,GAAG;gBACd,IAAI;aACL;YACD,QAAQ,EAAE,EAAE;SACb,EAAE;YACD,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,QAAQ;YACjB,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,uDAAuD;aACxD;YACD,QAAQ,EAAE,CAAC;oBACT,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,YAAY;iBACpB,CAAC;SACH;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markdown-to-html-cli",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Command line tool generates markdown as html.",
|
|
6
6
|
"homepage": "https://jaywcjlove.github.io/markdown-to-html-cli",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@types/fs-extra": "~9.0.13",
|
|
41
41
|
"@types/minimist": "~1.2.2",
|
|
42
|
-
"@uiw/github-corners": "~1.5.
|
|
42
|
+
"@uiw/github-corners": "~1.5.12",
|
|
43
43
|
"@wcj/markdown-style": "~1.0.7",
|
|
44
44
|
"@wcj/markdown-to-html": "~2.0.3",
|
|
45
45
|
"fs-extra": "~10.0.0",
|
|
@@ -5,33 +5,21 @@ interface GithubCorners {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @uiw/github-corners@1.5.
|
|
8
|
+
* @uiw/github-corners@1.5.12
|
|
9
9
|
* https://github.com/uiwjs/react-github-corners
|
|
10
10
|
*/
|
|
11
|
-
const scriptString = `const
|
|
12
|
-
|
|
11
|
+
const scriptString = `const GITHUB_CORNERS_TEMPLATE = document.createElement("template");
|
|
12
|
+
GITHUB_CORNERS_TEMPLATE.innerHTML = \`
|
|
13
13
|
<style>
|
|
14
|
-
:host a:hover .octo-arm {
|
|
15
|
-
animation: octocat-wave 560ms ease-in-out;
|
|
16
|
-
}
|
|
14
|
+
:host a:hover .octo-arm { animation: octocat-wave 560ms ease-in-out; }
|
|
17
15
|
@keyframes octocat-wave {
|
|
18
|
-
0%, 100% {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
20%, 60% {
|
|
22
|
-
transform: rotate(-25deg);
|
|
23
|
-
}
|
|
24
|
-
40%, 80% {
|
|
25
|
-
transform: rotate(10deg);
|
|
26
|
-
}
|
|
16
|
+
0%, 100% { transform: rotate(0); }
|
|
17
|
+
20%, 60% { transform: rotate(-25deg); }
|
|
18
|
+
40%, 80% { transform: rotate(10deg); }
|
|
27
19
|
}
|
|
28
20
|
@media (max-width:500px) {
|
|
29
|
-
:host a:hover .octo-arm {
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
:host .octo-arm {
|
|
33
|
-
animation: octocat-wave 560ms ease-in-out;
|
|
34
|
-
}
|
|
21
|
+
:host a:hover .octo-arm { animation: none; }
|
|
22
|
+
:host .octo-arm { animation: octocat-wave 560ms ease-in-out; }
|
|
35
23
|
}
|
|
36
24
|
</style>
|
|
37
25
|
<svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true" style="position: absolute; border: 0px; top: 0px;">
|
|
@@ -49,7 +37,7 @@ export class GithubCorners extends HTMLElement {
|
|
|
49
37
|
super();
|
|
50
38
|
this.right = '0';
|
|
51
39
|
this.shadow = this.attachShadow({ mode: 'open' });
|
|
52
|
-
this.shadow.appendChild(this.ownerDocument.importNode(
|
|
40
|
+
this.shadow.appendChild(this.ownerDocument.importNode(GITHUB_CORNERS_TEMPLATE.content, true));
|
|
53
41
|
this.update();
|
|
54
42
|
}
|
|
55
43
|
static get observedAttributes() {
|
|
@@ -97,6 +85,7 @@ export function githubCorners(opts: GithubCorners): Element[] {
|
|
|
97
85
|
properties: {
|
|
98
86
|
target: '__blank',
|
|
99
87
|
position: 'fixed',
|
|
88
|
+
'z-index': 999,
|
|
100
89
|
href,
|
|
101
90
|
},
|
|
102
91
|
children: []
|